diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 9048886bd3534612b72f5cd530b28953b96994c6..fbd11d275aa18cdccb4bdaefb429ea2fa2f04130 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3847,7 +3847,7 @@ static int decode_slice_header(H264Context *h){
         if(!s->avctx->sample_aspect_ratio.den)
             s->avctx->sample_aspect_ratio.den = 1;
 
-        if(h->sps.timing_info_present_flag && h->sps.fixed_frame_rate_flag){
+        if(h->sps.timing_info_present_flag){
             s->avctx->time_base= (AVRational){h->sps.num_units_in_tick, h->sps.time_scale};
         }
     }