diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-12 15:44:24 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-12 15:44:24 +0000 |
commit | 329345755ce1b1d76e84de9ea988fde7a52799af (patch) | |
tree | 05c540d5283001bb71139981a49da24c1305c953 /libmpcodecs | |
parent | a06099c3e40451e9497057fa42541d0b31921150 (diff) |
per context frame_rate_base
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9572 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/ve_lavc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c index d8438b2d58..0b11819605 100644 --- a/libmpcodecs/ve_lavc.c +++ b/libmpcodecs/ve_lavc.c @@ -240,7 +240,12 @@ static int config(struct vf_instance_s* vf, else lavc_venc_context->bit_rate = 800000; /* default */ lavc_venc_context->bit_rate_tolerance= lavc_param_vrate_tolerance*1000; - lavc_venc_context->frame_rate = (float)mux_v->h.dwRate/mux_v->h.dwScale * FRAME_RATE_BASE; +#if LIBAVCODEC_BUILD >= 4662 + lavc_venc_context->frame_rate = mux_v->h.dwRate; + lavc_venc_context->frame_rate_base = mux_v->h.dwScale; +#else + lavc_venc_context->frame_rate = mux_v->h.dwRate*FRAME_RATE_BASE/mux_v->h.dwScale; +#endif lavc_venc_context->qmin= lavc_param_vqmin; lavc_venc_context->qmax= lavc_param_vqmax; #if LIBAVCODEC_BUILD >= 4646 |