Mercurial > mplayer.hg
changeset 9577:e39a71d9ca5f
1000l
author | michael |
---|---|
date | Thu, 13 Mar 2003 09:24:03 +0000 |
parents | bc2b0f1ed904 |
children | 0c5454233dcf |
files | libmpcodecs/vf_lavc.c |
diffstat | 1 files changed, 16 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf_lavc.c Wed Mar 12 23:57:23 2003 +0000 +++ b/libmpcodecs/vf_lavc.c Thu Mar 13 09:24:03 2003 +0000 @@ -62,12 +62,22 @@ switch(height){ case 240: case 480: +#if LIBAVCODEC_BUILD >= 4662 + lavc_venc_context.frame_rate = 30000; + lavc_venc_context.frame_rate_base= 1001; +#else lavc_venc_context.frame_rate=29.97*FRAME_RATE_BASE; // NTSC +#endif break; case 576: case 288: default: +#if LIBAVCODEC_BUILD >= 4662 + lavc_venc_context.frame_rate = 25; + lavc_venc_context.frame_rate_base= 1; +#else lavc_venc_context.frame_rate=25*FRAME_RATE_BASE; // PAL +#endif break; // lavc_venc_context.frame_rate=vo_fps*FRAME_RATE_BASE; // same as src } @@ -174,8 +184,12 @@ // fixed bitrate (in kbits) lavc_venc_context.bit_rate = 1000*p_quality; } - lavc_venc_context.frame_rate = (p_fps<1.0) ? 0 : (p_fps * FRAME_RATE_BASE); - lavc_venc_context.qmin= 1; +#if LIBAVCODEC_BUILD >= 4662 + lavc_venc_context.frame_rate_base = 1000*1001; + lavc_venc_context.frame_rate = (p_fps<1.0) ? 0 : (p_fps * lavc_venc_context.frame_rate_base); +#else + lavc_venc_context.frame_rate = (p_fps<1.0) ? 0 : (p_fps * FRAME_RATE_BASE); +#endif lavc_venc_context.gop_size = 0; // I-only return 1;