diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-04-27 17:12:14 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-04-27 17:12:14 +0200 |
commit | f08d171caa6a8eab00c1b0ac87bb3a79d98727e5 (patch) | |
tree | 6c350647300b690acff9f7e11c565aeaec32316d /libavcodec | |
parent | 0886267e3cc4ce12bcd48b712d8affa8c953bc38 (diff) | |
download | ffmpeg-f08d171caa6a8eab00c1b0ac87bb3a79d98727e5.tar.gz |
WMADEC: fix ticket125
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/wmadec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index 3601e47af1..1d71bdb201 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -103,7 +103,7 @@ static int wma_decode_init(AVCodecContext * avctx) s->use_variable_block_len = flags2 & 0x0004; if(avctx->codec->id == CODEC_ID_WMAV2 && avctx->extradata_size >= 8){ - if(!AV_RL16(extradata+6) && s->use_variable_block_len){ + if(AV_RL16(extradata+4)==0xd && s->use_variable_block_len){ av_log(avctx, AV_LOG_WARNING, "Disabling use_variable_block_len, if this fails contact the ffmpeg developers and send us the file\n"); s->use_variable_block_len= 0; // this fixes issue1503 } |