Mercurial > libavcodec.hg
comparison vc1.c @ 8583:d94775e24b0e libavcodec
Print VC-1 aspect ratio in debug
author | kostya |
---|---|
date | Tue, 13 Jan 2009 08:03:45 +0000 |
parents | 2624a270ef12 |
children | 8a47574d9fbc |
comparison
equal
deleted
inserted
replaced
8582:2624a270ef12 | 8583:d94775e24b0e |
---|---|
1017 }else if(ar == 15){ | 1017 }else if(ar == 15){ |
1018 w = get_bits(gb, 8); | 1018 w = get_bits(gb, 8); |
1019 h = get_bits(gb, 8); | 1019 h = get_bits(gb, 8); |
1020 v->s.avctx->sample_aspect_ratio = (AVRational){w, h}; | 1020 v->s.avctx->sample_aspect_ratio = (AVRational){w, h}; |
1021 } | 1021 } |
1022 av_log(v->s.avctx, AV_LOG_DEBUG, "Aspect: %i:%i\n", v->s.avctx->sample_aspect_ratio.num, v->s.avctx->sample_aspect_ratio.den); | |
1022 | 1023 |
1023 if(get_bits1(gb)){ //framerate stuff | 1024 if(get_bits1(gb)){ //framerate stuff |
1024 if(get_bits1(gb)) { | 1025 if(get_bits1(gb)) { |
1025 v->s.avctx->time_base.num = 32; | 1026 v->s.avctx->time_base.num = 32; |
1026 v->s.avctx->time_base.den = get_bits(gb, 16) + 1; | 1027 v->s.avctx->time_base.den = get_bits(gb, 16) + 1; |