Commit 0edf3e7a authored by Marton Balint's avatar Marton Balint

ffplay: remove manual bug option handling code

It is supported as a codec option, and those are already parsed.
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 9dac7977
...@@ -109,8 +109,6 @@ duration, the codec parameters, the current position in the stream and ...@@ -109,8 +109,6 @@ duration, the codec parameters, the current position in the stream and
the audio/video synchronisation drift. It is on by default, to the audio/video synchronisation drift. It is on by default, to
explicitly disable it you need to specify @code{-nostats}. explicitly disable it you need to specify @code{-nostats}.
@item -bug
Work around bugs.
@item -fast @item -fast
Non-spec-compliant optimizations. Non-spec-compliant optimizations.
@item -genpts @item -genpts
......
...@@ -325,7 +325,6 @@ static int show_status = 1; ...@@ -325,7 +325,6 @@ static int show_status = 1;
static int av_sync_type = AV_SYNC_AUDIO_MASTER; static int av_sync_type = AV_SYNC_AUDIO_MASTER;
static int64_t start_time = AV_NOPTS_VALUE; static int64_t start_time = AV_NOPTS_VALUE;
static int64_t duration = AV_NOPTS_VALUE; static int64_t duration = AV_NOPTS_VALUE;
static int workaround_bugs = 1;
static int fast = 0; static int fast = 0;
static int genpts = 0; static int genpts = 0;
static int lowres = 0; static int lowres = 0;
...@@ -2632,7 +2631,6 @@ static int stream_component_open(VideoState *is, int stream_index) ...@@ -2632,7 +2631,6 @@ static int stream_component_open(VideoState *is, int stream_index)
} }
avctx->codec_id = codec->id; avctx->codec_id = codec->id;
avctx->workaround_bugs = workaround_bugs;
if(stream_lowres > av_codec_get_max_lowres(codec)){ if(stream_lowres > av_codec_get_max_lowres(codec)){
av_log(avctx, AV_LOG_WARNING, "The maximum value for lowres supported by the decoder is %d\n", av_log(avctx, AV_LOG_WARNING, "The maximum value for lowres supported by the decoder is %d\n",
av_codec_get_max_lowres(codec)); av_codec_get_max_lowres(codec));
...@@ -3643,7 +3641,6 @@ static const OptionDef options[] = { ...@@ -3643,7 +3641,6 @@ static const OptionDef options[] = {
{ "f", HAS_ARG, { .func_arg = opt_format }, "force format", "fmt" }, { "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" }, { "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", "" }, { "stats", OPT_BOOL | OPT_EXPERT, { &show_status }, "show status", "" },
{ "bug", OPT_INT | HAS_ARG | OPT_EXPERT, { &workaround_bugs }, "workaround bugs", "" },
{ "fast", OPT_BOOL | OPT_EXPERT, { &fast }, "non spec compliant optimizations", "" }, { "fast", OPT_BOOL | OPT_EXPERT, { &fast }, "non spec compliant optimizations", "" },
{ "genpts", OPT_BOOL | OPT_EXPERT, { &genpts }, "generate pts", "" }, { "genpts", OPT_BOOL | OPT_EXPERT, { &genpts }, "generate pts", "" },
{ "drp", OPT_INT | HAS_ARG | OPT_EXPERT, { &decoder_reorder_pts }, "let decoder reorder pts 0=off 1=on -1=auto", ""}, { "drp", OPT_INT | HAS_ARG | OPT_EXPERT, { &decoder_reorder_pts }, "let decoder reorder pts 0=off 1=on -1=auto", ""},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment