You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +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:
@@ -768,6 +768,9 @@ static int wma_decode_superframe(AVCodecContext *avctx,
|
|||||||
s->last_superframe_len = 0;
|
s->last_superframe_len = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
if (buf_size < s->block_align)
|
||||||
|
return 0;
|
||||||
|
buf_size = s->block_align;
|
||||||
|
|
||||||
samples = data;
|
samples = data;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user