[FFmpeg-cvslog] ffplay: remove -debug option

Stefano Sabatini git at videolan.org
Wed Jun 8 01:39:06 CEST 2011


ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Wed Jun  8 01:28:11 2011 +0200| [8f2a2e605165efcbb16c3470d48e61e4a53a0f94] | committer: Stefano Sabatini

ffplay: remove -debug option

The options -loglevel LEVEL -debug FLAGS can be used for achieving the
same objectives, with a finer level of control.

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

 doc/ffplay.texi |    2 --
 ffplay.c        |   10 ----------
 2 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/doc/ffplay.texi b/doc/ffplay.texi
index 0d12fd8..f9f5e07 100644
--- a/doc/ffplay.texi
+++ b/doc/ffplay.texi
@@ -93,8 +93,6 @@ Set 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 -fast
diff --git a/ffplay.c b/ffplay.c
index cd2255a..1fd9aba 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -239,7 +239,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 step = 0;
 static int thread_count = 1;
 static int workaround_bugs = 1;
@@ -2133,7 +2132,6 @@ static int stream_component_open(VideoState *is, int stream_index)
     if (!codec)
         return -1;
 
-    avctx->debug = debug;
     avctx->workaround_bugs = workaround_bugs;
     avctx->lowres = lowres;
     if(lowres) avctx->flags |= CODEC_FLAG_EMU_EDGE;
@@ -2883,13 +2881,6 @@ static int opt_duration(const char *opt, const char *arg)
     return 0;
 }
 
-static int opt_debug(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_thread_count(const char *opt, const char *arg)
 {
     thread_count= parse_number_or_die(opt, arg, OPT_INT64, 0, INT_MAX);
@@ -2939,7 +2930,6 @@ static const OptionDef options[] = {
     { "f", HAS_ARG, {(void*)opt_format}, "force format", "fmt" },
     { "pix_fmt", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_frame_pix_fmt}, "set pixel format", "format" },
     { "stats", OPT_BOOL | OPT_EXPERT, {(void*)&show_status}, "show status", "" },
-    { "debug", HAS_ARG | OPT_EXPERT, {(void*)opt_debug}, "print specific debug info", "" },
     { "bug", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&workaround_bugs}, "workaround bugs", "" },
     { "fast", OPT_BOOL | OPT_EXPERT, {(void*)&fast}, "non spec compliant optimizations", "" },
     { "genpts", OPT_BOOL | OPT_EXPERT, {(void*)&genpts}, "generate pts", "" },



More information about the ffmpeg-cvslog mailing list