Mercurial > libavcodec.hg
diff h264.c @ 11097:7e5d7873fad9 libavcodec
Set x264_build so that checks are simpler.
author | michael |
---|---|
date | Mon, 08 Feb 2010 00:08:05 +0000 |
parents | 4a95670ed5f1 |
children | 1f13ac0e696b |
line wrap: on
line diff
--- a/h264.c Sun Feb 07 23:15:53 2010 +0000 +++ b/h264.c Mon Feb 08 00:08:05 2010 +0000 @@ -873,6 +873,7 @@ h->thread_context[0] = h; h->outputed_poc = INT_MIN; h->prev_poc_msb= 1<<16; + h->x264_build = -1; ff_h264_reset_sei(h); if(avctx->codec_id == CODEC_ID_H264){ if(avctx->ticks_per_frame == 1){ @@ -1782,7 +1783,7 @@ if(h->sps.timing_info_present_flag){ int64_t den= h->sps.time_scale; - if(h->x264_build > 0 && h->x264_build < 44) + if(h->x264_build < 44U) den *= 2; av_reduce(&s->avctx->time_base.num, &s->avctx->time_base.den, h->sps.num_units_in_tick, den, 1<<30);