# HG changeset patch # User mru # Date 1137629955 0 # Node ID 6c3f8730037814f98db55a37ca227edf8324d0bf # Parent c0fde3eb7784b643ff1fada094e50dec1e861a62 interpret H264 VUI timing info correctly work around bug in x264 build < 44 diff -r c0fde3eb7784 -r 6c3f87300378 h264.c --- a/h264.c Tue Jan 17 08:27:39 2006 +0000 +++ b/h264.c Thu Jan 19 00:19:15 2006 +0000 @@ -4309,7 +4309,11 @@ 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, h->sps.time_scale}; + s->avctx->time_base= (AVRational){h->sps.num_units_in_tick * 2, 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, + s->avctx->time_base.num, s->avctx->time_base.den, 1<<30); } }