[FFmpeg-cvslog] avplay: remove the -debug option.

Anton Khirnov git at videolan.org
Wed Mar 20 11:30:09 CET 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Mar 19 07:55:25 2013 +0100| [e5c32d6da7836c7c9bb8393cb4de7e0997a4363b] | committer: Anton Khirnov

avplay: remove the -debug option.

It just shadows the corresponding AVOption and prevents using named
constants.

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

 avplay.c        |   10 ----------
 doc/avplay.texi |    2 --
 2 files changed, 12 deletions(-)

diff --git a/avplay.c b/avplay.c
index 754a69f..3cf9c73 100644
--- a/avplay.c
+++ b/avplay.c
@@ -243,7 +243,6 @@ static int show_status = 1;
 static int av_sync_type = AV_SYNC_AUDIO_MASTER;
 static int64_t start_time = AV_NOPTS_VALUE;
 static int64_t duration = AV_NOPTS_VALUE;
-static int debug = 0;
 static int debug_mv = 0;
 static int step = 0;
 static int workaround_bugs = 1;
@@ -2041,7 +2040,6 @@ static int stream_component_open(VideoState *is, int stream_index)
 
     codec = avcodec_find_decoder(avctx->codec_id);
     avctx->debug_mv          = debug_mv;
-    avctx->debug             = debug;
     avctx->workaround_bugs   = workaround_bugs;
     avctx->idct_algo         = idct;
     avctx->skip_frame        = skip_frame;
@@ -2817,13 +2815,6 @@ static int opt_duration(void *optctx, const char *opt, const char *arg)
     return 0;
 }
 
-static int opt_debug(void *optctx, const char *opt, const char *arg)
-{
-    av_log_set_level(99);
-    debug = parse_number_or_die(opt, arg, OPT_INT64, 0, INT_MAX);
-    return 0;
-}
-
 static int opt_vismv(void *optctx, const char *opt, const char *arg)
 {
     debug_mv = parse_number_or_die(opt, arg, OPT_INT64, INT_MIN, INT_MAX);
@@ -2848,7 +2839,6 @@ static const OptionDef options[] = {
     { "f", HAS_ARG, { .func_arg = opt_format }, "force format", "fmt" },
     { "pix_fmt", HAS_ARG | OPT_EXPERT | OPT_VIDEO, { .func_arg = opt_frame_pix_fmt }, "set pixel format", "format" },
     { "stats", OPT_BOOL | OPT_EXPERT, { &show_status }, "show status", "" },
-    { "debug", HAS_ARG | OPT_EXPERT, { .func_arg = opt_debug }, "print specific debug info", "" },
     { "bug", OPT_INT | HAS_ARG | OPT_EXPERT, { &workaround_bugs }, "workaround bugs", "" },
     { "vismv", HAS_ARG | OPT_EXPERT, { .func_arg = opt_vismv }, "visualize motion vectors", "" },
     { "fast", OPT_BOOL | OPT_EXPERT, { &fast }, "non spec compliant optimizations", "" },
diff --git a/doc/avplay.texi b/doc/avplay.texi
index 8fc3308..b856f9b 100644
--- a/doc/avplay.texi
+++ b/doc/avplay.texi
@@ -76,8 +76,6 @@ the option @var{pixel_format}.
 @item -stats
 Show the stream duration, the codec parameters, the current position in
 the stream and the audio/video synchronisation drift.
- at item -debug
-Print specific debug info.
 @item -bug
 Work around bugs.
 @item -vismv



More information about the ffmpeg-cvslog mailing list