Commit c4d01e6f authored by kostya's avatar kostya

Set frame rate from extradata

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7814 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8eb2b998
...@@ -1320,10 +1320,16 @@ static int decode_sequence_header_adv(VC1Context *v, GetBitContext *gb) ...@@ -1320,10 +1320,16 @@ static int decode_sequence_header_adv(VC1Context *v, GetBitContext *gb)
if(get_bits1(gb)){ //framerate stuff if(get_bits1(gb)){ //framerate stuff
if(get_bits1(gb)) { if(get_bits1(gb)) {
get_bits(gb, 16); v->s.avctx->time_base.num = 32;
v->s.avctx->time_base.den = get_bits(gb, 16) + 1;
} else { } else {
get_bits(gb, 8); int nr, dr;
get_bits(gb, 4); nr = get_bits(gb, 8);
dr = get_bits(gb, 4);
if(nr && nr < 8 && dr && dr < 3){
v->s.avctx->time_base.num = fps_dr[dr - 1];
v->s.avctx->time_base.den = fps_nr[nr - 1] * 1000;
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment