Mercurial > mplayer.hg
changeset 9571:9c9b9a590ddc
per context frame_rate_base
author | michael |
---|---|
date | Wed, 12 Mar 2003 15:44:24 +0000 |
parents | 602264261d3e |
children | 96f874a6cd60 |
files | libmpcodecs/ve_lavc.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c Wed Mar 12 15:14:13 2003 +0000 +++ b/libmpcodecs/ve_lavc.c Wed Mar 12 15:44:24 2003 +0000 @@ -240,7 +240,12 @@ 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