summaryrefslogtreecommitdiff
path: root/libavcodec/x264.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/x264.c')
-rw-r--r--libavcodec/x264.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/x264.c b/libavcodec/x264.c
index 79f82b8cd5..c04a2e67b1 100644
--- a/libavcodec/x264.c
+++ b/libavcodec/x264.c
@@ -151,8 +151,8 @@ X264_init(AVCodecContext *avctx)
x4->params.i_height = avctx->height;
x4->params.vui.i_sar_width = avctx->sample_aspect_ratio.num;
x4->params.vui.i_sar_height = avctx->sample_aspect_ratio.den;
- x4->params.i_fps_num = avctx->frame_rate;
- x4->params.i_fps_den = avctx->frame_rate_base;
+ x4->params.i_fps_num = avctx->time_base.den;
+ x4->params.i_fps_den = avctx->time_base.num;
x4->enc = x264_encoder_open(&x4->params);
if(!x4->enc)