diff options
author | wm4 <wm4@nowhere> | 2013-09-01 19:23:41 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-09-01 20:17:50 +0200 |
commit | 570826448a9ff522157d0e8ee0f497c0e2eeff61 (patch) | |
tree | 838af6936943d659dcebd31ce2776db69f73e381 /compat | |
parent | ead525e17a0e81bdac915dccbb0503f07cb426bf (diff) | |
download | mpv-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