From 820833b2aa56c130d726732e8cd9d67aa9fcaa1c Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 7 Aug 2002 00:08:57 +0000 Subject: [PATCH] mpeg4 mpeg quantizer encoding git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6945 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/ve_lavc.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c index 3308d364a5..363dc69663 100644 --- a/libmpcodecs/ve_lavc.c +++ b/libmpcodecs/ve_lavc.c @@ -67,6 +67,7 @@ static int lavc_param_packet_size= 0; static int lavc_param_strict= 0; static int lavc_param_data_partitioning= 0; static int lavc_param_gray=0; +static int lavc_param_mpeg_quant=0; #include "cfgparser.h" @@ -100,6 +101,9 @@ struct config lavcopts_conf[]={ {"keyint", &lavc_param_keyint, CONF_TYPE_INT, 0, 0, 0, NULL}, #if LIBAVCODEC_BUILD >= 4614 {"gray", &lavc_param_gray, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_PART, NULL}, +#endif +#if LIBAVCODEC_BUILD >= 4619 + {"mpeg_quant", &lavc_param_mpeg_quant, CONF_TYPE_FLAG, 0, 0, 1, NULL}, #endif {NULL, NULL, 0, 0, 0, 0, NULL} }; @@ -156,7 +160,10 @@ static int config(struct vf_instance_s* vf, if(lavc_param_packet_size )lavc_venc_context.rtp_mode=1; lavc_venc_context.strict_std_compliance= lavc_param_strict; #endif - +#if LIBAVCODEC_BUILD >= 4619 + lavc_venc_context.mpeg_quant=lavc_param_mpeg_quant; +#endif + /* keyframe interval */ if (lavc_param_keyint >= 0) /* != -1 */ lavc_venc_context.gop_size = lavc_param_keyint;