summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c3
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);