Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
2636:2344c6713011 | 2637:ef44d24680d1 |
---|---|
149 | 149 |
150 x4->params.i_width = avctx->width; | 150 x4->params.i_width = avctx->width; |
151 x4->params.i_height = avctx->height; | 151 x4->params.i_height = avctx->height; |
152 x4->params.vui.i_sar_width = avctx->sample_aspect_ratio.num; | 152 x4->params.vui.i_sar_width = avctx->sample_aspect_ratio.num; |
153 x4->params.vui.i_sar_height = avctx->sample_aspect_ratio.den; | 153 x4->params.vui.i_sar_height = avctx->sample_aspect_ratio.den; |
154 x4->params.i_fps_num = avctx->frame_rate; | 154 x4->params.i_fps_num = avctx->time_base.den; |
155 x4->params.i_fps_den = avctx->frame_rate_base; | 155 x4->params.i_fps_den = avctx->time_base.num; |
156 | 156 |
157 x4->enc = x264_encoder_open(&x4->params); | 157 x4->enc = x264_encoder_open(&x4->params); |
158 if(!x4->enc) | 158 if(!x4->enc) |
159 return -1; | 159 return -1; |
160 | 160 |