diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-02-08 00:08:05 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-02-08 00:08:05 +0000 |
commit | 055a6aa76a84ced5bebf988ef67e22ac3c5763c5 (patch) | |
tree | a4191a72fc83c77f483d101002de01b8897783e9 /libavcodec/h264.c | |
parent | 3a06e8647fa5af8c6c8dd8f38bc4acc214d3f24b (diff) | |
download | ffmpeg-055a6aa76a84ced5bebf988ef67e22ac3c5763c5.tar.gz |
Set x264_build so that checks are simpler.
Originally committed as revision 21681 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 3a1138e128..bbe710edb2 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -873,6 +873,7 @@ av_cold int ff_h264_decode_init(AVCodecContext *avctx){ 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 @@ static int decode_slice_header(H264Context *h, H264Context *h0){ 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); |