Mercurial > libavcodec.hg
diff x264.c @ 2637:ef44d24680d1 libavcodec
switch to native time bases
author | michael |
---|---|
date | Sat, 30 Apr 2005 21:43:59 +0000 |
parents | 37cdd1a1174a |
children | dfa4d2773d13 |
line wrap: on
line diff
--- a/x264.c Mon Apr 25 18:41:38 2005 +0000 +++ b/x264.c Sat Apr 30 21:43:59 2005 +0000 @@ -151,8 +151,8 @@ 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)