mirror of https://github.com/mpv-player/mpv
570826448a
This is basically a libavcodec API oddity: it can happen that avcodec_decode_audio4() returns 0 (meaning 0 bytes were consumed). It requires you to feed the complete packet again to decode the full packet, and to successfully decode the following packets. We ignored this case with the argument that there's the danger of an endless decode loop (because nothing of that packet is apparently decoded, so it would retry forever), but change it in order to decode mpc8 files correctly. Also add some comments to explain the mess. |
||
---|---|---|
.. | ||
ad.h | ||
ad_lavc.c | ||
ad_mpg123.c | ||
ad_spdif.c | ||
dec_audio.c | ||
dec_audio.h |