Mercurial > libavcodec.hg
comparison h264.c @ 2637:ef44d24680d1 libavcodec
switch to native time bases
author | michael |
---|---|
date | Sat, 30 Apr 2005 21:43:59 +0000 |
parents | 72e6ffa1f3a5 |
children | d5de8b677bad |
comparison
equal
deleted
inserted
replaced
2636:2344c6713011 | 2637:ef44d24680d1 |
---|---|
3836 s->avctx->sample_aspect_ratio= h->sps.sar; | 3836 s->avctx->sample_aspect_ratio= h->sps.sar; |
3837 if(!s->avctx->sample_aspect_ratio.den) | 3837 if(!s->avctx->sample_aspect_ratio.den) |
3838 s->avctx->sample_aspect_ratio.den = 1; | 3838 s->avctx->sample_aspect_ratio.den = 1; |
3839 | 3839 |
3840 if(h->sps.timing_info_present_flag && h->sps.fixed_frame_rate_flag){ | 3840 if(h->sps.timing_info_present_flag && h->sps.fixed_frame_rate_flag){ |
3841 s->avctx->frame_rate = h->sps.time_scale; | 3841 s->avctx->time_base= (AVRational){h->sps.num_units_in_tick, h->sps.time_scale}; |
3842 s->avctx->frame_rate_base = h->sps.num_units_in_tick; | |
3843 } | 3842 } |
3844 } | 3843 } |
3845 | 3844 |
3846 if(h->slice_num == 0){ | 3845 if(h->slice_num == 0){ |
3847 frame_start(h); | 3846 frame_start(h); |