[FFmpeg-cvslog] ffmpeg: drop -sameq/-samequant options

Anton Khirnov git at videolan.org
Tue Nov 23 12:41:14 EET 2021


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Nov 12 18:35:54 2021 +0100| [84cb255c20800ce8bc12a93a1b63475ea5413010] | committer: Anton Khirnov

ffmpeg: drop -sameq/-samequant options

They did nothing but return an error since 2012.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=84cb255c20800ce8bc12a93a1b63475ea5413010
---

 fftools/ffmpeg_opt.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
index ca87171fe0..45ed727e5e 100644
--- a/fftools/ffmpeg_opt.c
+++ b/fftools/ffmpeg_opt.c
@@ -303,15 +303,6 @@ static int opt_stats_period(void *optctx, const char *opt, const char *arg)
     return 0;
 }
 
-static int opt_sameq(void *optctx, const char *opt, const char *arg)
-{
-    av_log(NULL, AV_LOG_ERROR, "Option '%s' was removed. "
-           "If you are looking for an option to preserve the quality (which is not "
-           "what -%s was for), use -qscale 0 or an equivalent quality factor option.\n",
-           opt, opt);
-    return AVERROR(EINVAL);
-}
-
 static int opt_audio_codec(void *optctx, const char *opt, const char *arg)
 {
     OptionsContext *o = optctx;
@@ -3764,10 +3755,6 @@ const OptionDef options[] = {
     { "vcodec",       OPT_VIDEO | HAS_ARG  | OPT_PERFILE | OPT_INPUT |
                       OPT_OUTPUT,                                                { .func_arg = opt_video_codec },
         "force video codec ('copy' to copy stream)", "codec" },
-    { "sameq",        OPT_VIDEO | OPT_EXPERT ,                                   { .func_arg = opt_sameq },
-        "Removed" },
-    { "same_quant",   OPT_VIDEO | OPT_EXPERT ,                                   { .func_arg = opt_sameq },
-        "Removed" },
     { "timecode",     OPT_VIDEO | HAS_ARG | OPT_PERFILE | OPT_OUTPUT,            { .func_arg = opt_timecode },
         "set initial TimeCode value.", "hh:mm:ss[:;.]ff" },
     { "pass",         OPT_VIDEO | HAS_ARG | OPT_SPEC | OPT_INT | OPT_OUTPUT,     { .off = OFFSET(pass) },



More information about the ffmpeg-cvslog mailing list