Browse Source

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
tags/v0.5
Reimar Döffinger 18 years ago
parent
commit
4c1e509c11
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/wmadec.c

+ 3
- 0
libavcodec/wmadec.c View File

@@ -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…
Cancel
Save