summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-01 19:23:41 +0200
committerwm4 <wm4@nowhere>2013-09-01 20:17:50 +0200
commit570826448a9ff522157d0e8ee0f497c0e2eeff61 (patch)
tree838af6936943d659dcebd31ce2776db69f73e381 /compat
parentead525e17a0e81bdac915dccbb0503f07cb426bf (diff)
downloadmpv-570826448a9ff522157d0e8ee0f497c0e2eeff61.tar.bz2
mpv-570826448a9ff522157d0e8ee0f497c0e2eeff61.tar.xz
audio: fix playback of Musepack SV8 files
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.
Diffstat (limited to 'compat')
0 files changed, 0 insertions, 0 deletions