aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpcodecs
diff options
context:
space:
mode:
authorGravatar michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-13 09:24:03 +0000
committerGravatar michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-13 09:24:03 +0000
commit2884aed1ce66a29324e5b51cbded503bd832663c (patch)
tree32b6c3a8dda98a6b6e2b1846eb24e8dbc3e85d06 /libmpcodecs
parent8bd3a05ea71fb839b91935eb3ee544da562d7f30 (diff)
1000l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9578 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vf_lavc.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/libmpcodecs/vf_lavc.c b/libmpcodecs/vf_lavc.c
index d722c954b5..5c84665368 100644
--- a/libmpcodecs/vf_lavc.c
+++ b/libmpcodecs/vf_lavc.c
@@ -62,12 +62,22 @@ static int config(struct vf_instance_s* vf,
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 @@ static int open(vf_instance_t *vf, char* args){
// 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;