mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-03 11:07:41 +00:00
ffplay: remove -debug option
The options -loglevel LEVEL -debug FLAGS can be used for achieving the same objectives, with a finer level of control.
This commit is contained in:
parent
e77a3095bd
commit
8f2a2e6051
@ -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.
|
||||
@item -debug
|
||||
Print specific debug info.
|
||||
@item -bug
|
||||
Work around bugs.
|
||||
@item -fast
|
||||
|
10
ffplay.c
10
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", "" },
|
||||
|
Loading…
Reference in New Issue
Block a user