[FFmpeg-cvslog] r11115 - trunk/libavcodec/wmadec.c
reimar
subversion
Fri Nov 30 22:51:34 CET 2007
Author: reimar
Date: Fri Nov 30 22:51:34 2007
New Revision: 11115
Log:
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.
Modified:
trunk/libavcodec/wmadec.c
Modified: trunk/libavcodec/wmadec.c
==============================================================================
--- trunk/libavcodec/wmadec.c (original)
+++ trunk/libavcodec/wmadec.c Fri Nov 30 22:51:34 2007
@@ -768,6 +768,9 @@ static int wma_decode_superframe(AVCodec
s->last_superframe_len = 0;
return 0;
}
+ if (buf_size < s->block_align)
+ return 0;
+ buf_size = s->block_align;
samples = data;
More information about the ffmpeg-cvslog
mailing list