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, 1 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 42f9b06cc2..7fdae20b7c 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3838,8 +3838,7 @@ static int decode_slice_header(H264Context *h){
s->avctx->sample_aspect_ratio.den = 1;
if(h->sps.timing_info_present_flag && h->sps.fixed_frame_rate_flag){
- s->avctx->frame_rate = h->sps.time_scale;
- s->avctx->frame_rate_base = h->sps.num_units_in_tick;
+ s->avctx->time_base= (AVRational){h->sps.num_units_in_tick, h->sps.time_scale};
}
}