mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
wma_decode_superframe always returns s->block_align, so make
sure we actually consume exactly that amount. Fixes sound artefacts (mostly blips) that mysteriously disappeared after e.g. remuxing with mencoder. Originally committed as revision 11115 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
2d4e0c1aa9
commit
4c1e509c11
@ -768,6 +768,9 @@ static int wma_decode_superframe(AVCodecContext *avctx,
|
||||
s->last_superframe_len = 0;
|
||||
return 0;
|
||||
}
|
||||
if (buf_size < s->block_align)
|
||||
return 0;
|
||||
buf_size = s->block_align;
|
||||
|
||||
samples = data;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user