Browse code

Remove the GOP "g" OptionDef option from ffmpeg.c .

Originally committed as revision 6262 to svn://svn.ffmpeg.org/ffmpeg/trunk

Panagiotis Issaris authored on 2006/09/16 02:40:46
Showing 1 changed files
... ...
@@ -161,7 +161,6 @@ static int loop_input = 0;
161 161
 static int loop_output = AVFMT_NOOUTPUTLOOP;
162 162
 static int qp_hist = 0;
163 163
 
164
-static int gop_size = 12;
165 164
 static int intra_only = 0;
166 165
 static int audio_sample_rate = 44100;
167 166
 static int audio_bit_rate = 64000;
... ...
@@ -2362,11 +2361,6 @@ static void opt_frame_aspect_ratio(const char *arg)
2362 2362
     frame_aspect_ratio = ar;
2363 2363
 }
2364 2364
 
2365
-static void opt_gop_size(const char *arg)
2366
-{
2367
-    gop_size = atoi(arg);
2368
-}
2369
-
2370 2365
 static void opt_b_frames(const char *arg)
2371 2366
 {
2372 2367
     b_frames = atoi(arg);
... ...
@@ -3037,9 +3031,7 @@ static void new_video_stream(AVFormatContext *oc)
3037 3037
                 video_enc->pix_fmt = codec->pix_fmts[0];
3038 3038
         }
3039 3039
 
3040
-        if (!intra_only)
3041
-            video_enc->gop_size = gop_size;
3042
-        else
3040
+        if (intra_only)
3043 3041
             video_enc->gop_size = 0;
3044 3042
         if (video_qscale || same_quality) {
3045 3043
             video_enc->flags |= CODEC_FLAG_QSCALE;
... ...
@@ -3797,7 +3789,7 @@ static void opt_target(const char *arg)
3797 3797
 
3798 3798
         opt_frame_size(norm ? "352x240" : "352x288");
3799 3799
         opt_frame_rate(frame_rates[norm]);
3800
-        opt_gop_size(norm ? "18" : "15");
3800
+        opt_default("gop", norm ? "18" : "15");
3801 3801
 
3802 3802
         opt_default("b", "1150000");
3803 3803
         opt_default("maxrate", "1150000");
... ...
@@ -3824,7 +3816,7 @@ static void opt_target(const char *arg)
3824 3824
 
3825 3825
         opt_frame_size(norm ? "480x480" : "480x576");
3826 3826
         opt_frame_rate(frame_rates[norm]);
3827
-        opt_gop_size(norm ? "18" : "15");
3827
+        opt_default("gop", norm ? "18" : "15");
3828 3828
 
3829 3829
         opt_default("b", "2040000");
3830 3830
         opt_default("maxrate", "2516000");
... ...
@@ -3846,7 +3838,7 @@ static void opt_target(const char *arg)
3846 3846
 
3847 3847
         opt_frame_size(norm ? "720x480" : "720x576");
3848 3848
         opt_frame_rate(frame_rates[norm]);
3849
-        opt_gop_size(norm ? "18" : "15");
3849
+        opt_default("gop", norm ? "18" : "15");
3850 3850
 
3851 3851
         opt_default("b", "6000000");
3852 3852
         opt_default("maxrate", "9000000");
... ...
@@ -4005,7 +3997,6 @@ const OptionDef options[] = {
4005 4005
     { "padleft", HAS_ARG | OPT_VIDEO, {(void*)opt_frame_pad_left}, "set left pad band size (in pixels)", "size" },
4006 4006
     { "padright", HAS_ARG | OPT_VIDEO, {(void*)opt_frame_pad_right}, "set right pad band size (in pixels)", "size" },
4007 4007
     { "padcolor", HAS_ARG | OPT_VIDEO, {(void*)opt_pad_color}, "set color of pad bands (Hex 000000 thru FFFFFF)", "color" },
4008
-    { "g", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_gop_size}, "set the group of picture size", "gop_size" },
4009 4008
     { "intra", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&intra_only}, "use only intra frames"},
4010 4009
     { "vn", OPT_BOOL | OPT_VIDEO, {(void*)&video_disable}, "disable video" },
4011 4010
     { "vdt", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)&video_discard}, "discard threshold", "n" },