diff options
author | cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-05-03 17:05:39 +0000 |
---|---|---|
committer | cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-05-03 17:05:39 +0000 |
commit | cce240cd0c6c02121ae33ca40ff1086c126cc843 (patch) | |
tree | 83e7c1bea43f6d1b0629a4dc6a7e750d70f2ea70 | |
parent | 3354a2f87461cd56eba934680fed6a59d294cec2 (diff) |
add "level" as lavc option
Patch by Gustavo Sverzut Barbieri, barbieri ! gmail x com
reference:
Subject: [MPlayer-dev-eng] [PATCH] add "level" as option to lavc (aka
Mencoder generating PS3 playable h264 videos)
Date: 2007-05-03 13:56 +200
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23227 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/ve_lavc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c index ca344fa455..11649c4633 100644 --- a/libmpcodecs/ve_lavc.c +++ b/libmpcodecs/ve_lavc.c @@ -150,6 +150,7 @@ static int lavc_param_video_global_header= 0; static int lavc_param_mv0_threshold = 256; static int lavc_param_refs = 1; static int lavc_param_b_sensitivity = 40; +static int lavc_param_level = FF_LEVEL_UNKNOWN; char *lavc_param_acodec = "mp2"; int lavc_param_atag = 0; @@ -294,6 +295,7 @@ m_option_t lavcopts_conf[]={ {"mv0_threshold", &lavc_param_mv0_threshold, CONF_TYPE_INT, CONF_RANGE, 0, INT_MAX, NULL}, {"refs", &lavc_param_refs, CONF_TYPE_INT, CONF_RANGE, 1, 16, NULL}, {"b_sensitivity", &lavc_param_b_sensitivity, CONF_TYPE_INT, CONF_RANGE, 1, INT_MAX, NULL}, + {"level", &lavc_param_level, CONF_TYPE_INT, CONF_RANGE, INT_MIN, INT_MAX, NULL}, {NULL, NULL, 0, 0, 0, 0, NULL} }; #endif @@ -562,6 +564,7 @@ static int config(struct vf_instance_s* vf, lavc_venc_context->mv0_threshold = lavc_param_mv0_threshold; lavc_venc_context->refs = lavc_param_refs; lavc_venc_context->b_sensitivity = lavc_param_b_sensitivity; + lavc_venc_context->level = lavc_param_level; switch(lavc_param_format) { |