mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-03 13:32:10 +00:00
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
This commit is contained in:
parent
f5dd1eb7b5
commit
3b99e00c75
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user