[FFmpeg-cvslog] r26202 - trunk/libavcodec/wmv2dec.c

cehoyos subversion
Mon Jan 3 00:41:02 CET 2011


Author: cehoyos
Date: Mon Jan  3 00:41:02 2011
New Revision: 26202

Log:
Fix crash decoding broken wmv2 files.
Fixes issue 1670.

Patch by Daniel Kang, daniel.d.kang at gmail

Modified:
   trunk/libavcodec/wmv2dec.c

Modified: trunk/libavcodec/wmv2dec.c
==============================================================================
--- trunk/libavcodec/wmv2dec.c	Mon Jan  3 00:40:30 2011	(r26201)
+++ trunk/libavcodec/wmv2dec.c	Mon Jan  3 00:41:02 2011	(r26202)
@@ -87,7 +87,7 @@ static int decode_ext_header(Wmv2Context
 
     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;



More information about the ffmpeg-cvslog mailing list