Mercurial > libavcodec.hg
diff h264.c @ 9035:d22ed7aad1b0 libavcodec
Correct time_base of H.264 and repeat_pict.
Patch by Ivan Schreter, schreter gmx net
author | cehoyos |
---|---|
date | Tue, 24 Feb 2009 20:19:59 +0000 |
parents | bcf716c58be4 |
children | 5fb849bddf4a |
line wrap: on
line diff
--- a/h264.c Tue Feb 24 20:17:02 2009 +0000 +++ b/h264.c Tue Feb 24 20:19:59 2009 +0000 @@ -3763,7 +3763,7 @@ s->avctx->sample_aspect_ratio.den = 1; if(h->sps.timing_info_present_flag){ - s->avctx->time_base= (AVRational){h->sps.num_units_in_tick * 2, h->sps.time_scale}; + s->avctx->time_base= (AVRational){h->sps.num_units_in_tick, h->sps.time_scale}; if(h->x264_build > 0 && h->x264_build < 44) s->avctx->time_base.den *= 2; av_reduce(&s->avctx->time_base.num, &s->avctx->time_base.den,