diff options
author | Daniel Kang <daniel.d.kang@gmail.com> | 2011-01-03 02:41:02 +0300 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2011-01-03 02:41:02 +0300 |
commit | 3b99e00c7549ccad90c57b5bcd6e3456650a994a (patch) | |
tree | bc680c7c9dfdd1e8bb08be8e13bcf81f4f290428 | |
parent | f5dd1eb7b5441cf65e9b68c51717d489fc21b155 (diff) |
Fix crash decoding broken wmv2 files.
Fixes issue 1670.
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26202 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/wmv2dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmv2dec.c b/libavcodec/wmv2dec.c index c83f898d7f..7dba7c57d6 100644 --- a/libavcodec/wmv2dec.c +++ b/libavcodec/wmv2dec.c @@ -87,7 +87,7 @@ static int decode_ext_header(Wmv2Context *w){ if(s->avctx->extradata_size<4) return -1; - init_get_bits(&gb, s->avctx->extradata, s->avctx->extradata_size*8); + init_get_bits(&gb, s->avctx->extradata, 32); fps = get_bits(&gb, 5); s->bit_rate = get_bits(&gb, 11)*1024; |