aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2008-06-25 21:48:51 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2008-06-25 21:48:51 +0000
commit9010d543901f58f3d7b88daa7448c503aa8b4d71 (patch)
treed76f0d141c9a4ac88bd6fa9b6ec4799445bfaad4
parent75d27450a1c452b3d1058b1ca0c2c3b30770330e (diff)
downloadffmpeg-9010d543901f58f3d7b88daa7448c503aa8b4d71.tar.gz
Remove unnecessary function opt_qdiff(), max_qdiff is set now through
the AVOption system. Also removes the previous constraints when setting max_qdiff through opt_qdiff() (1 <= max_qdiff <= 31). Originally committed as revision 13981 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index c3633739b2..371421de00 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -114,7 +114,6 @@ static int frame_rightBand = 0;
static int max_frames[4] = {INT_MAX, INT_MAX, INT_MAX, INT_MAX};
static AVRational frame_rate = (AVRational) {0,0};
static float video_qscale = 0;
-static int video_qdiff = 3;
static uint16_t *intra_matrix = NULL;
static uint16_t *inter_matrix = NULL;
#if 0 //experimental, (can be removed)
@@ -2494,16 +2493,6 @@ static void opt_qscale(const char *arg)
}
}
-static void opt_qdiff(const char *arg)
-{
- video_qdiff = atoi(arg);
- if (video_qdiff < 0 ||
- video_qdiff > 31) {
- fprintf(stderr, "qdiff must be >= 1 and <= 31\n");
- av_exit(1);
- }
-}
-
static void opt_strict(const char *arg)
{
strict= atoi(arg);
@@ -2997,7 +2986,6 @@ static void new_video_stream(AVFormatContext *oc)
if(inter_matrix)
video_enc->inter_matrix = inter_matrix;
- video_enc->max_qdiff = video_qdiff;
video_enc->thread_count = thread_count;
p= video_rc_override_string;
for(i=0; p; i++){
@@ -3724,7 +3712,6 @@ static const OptionDef options[] = {
{ "vn", OPT_BOOL | OPT_VIDEO, {(void*)&video_disable}, "disable video" },
{ "vdt", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)&video_discard}, "discard threshold", "n" },
{ "qscale", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_qscale}, "use fixed video quantizer scale (VBR)", "q" },
- { "qdiff", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_qdiff}, "max difference between the quantizer scale (VBR)", "q" },
{ "rc_override", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_video_rc_override_string}, "rate control override for specific intervals", "override" },
{ "vcodec", HAS_ARG | OPT_VIDEO, {(void*)opt_video_codec}, "force video codec ('copy' to copy stream)", "codec" },
{ "me_threshold", HAS_ARG | OPT_FUNC2 | OPT_EXPERT | OPT_VIDEO, {(void*)opt_me_threshold}, "motion estimaton threshold", "threshold" },