summaryrefslogtreecommitdiffstats
path: root/mpvcore
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-01 19:23:41 +0200
committerwm4 <wm4@nowhere>2013-09-04 08:50:32 +0200
commit150aeafdd27ed1ed1a4818a41ae2d7b4138022f2 (patch)
treefd524298519336db0a878376616bf226a9dec757 /mpvcore
parent1ef0d02245971af8d0980029e36ccbb1c28a3133 (diff)
downloadmpv-150aeafdd27ed1ed1a4818a41ae2d7b4138022f2.tar.bz2
mpv-150aeafdd27ed1ed1a4818a41ae2d7b4138022f2.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 'mpvcore')
0 files changed, 0 insertions, 0 deletions