|
|
@ -309,7 +309,6 @@ 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; |
|
|
|
static int error_concealment = 3; |
|
|
|
|
|
|
|
static int decoder_reorder_pts = -1; |
|
|
|
static int decoder_reorder_pts = -1; |
|
|
|
static int autoexit; |
|
|
|
static int autoexit; |
|
|
|
static int exit_on_keydown; |
|
|
|
static int exit_on_keydown; |
|
|
@ -2574,7 +2573,6 @@ static int stream_component_open(VideoState *is, int stream_index) |
|
|
|
stream_lowres = av_codec_get_max_lowres(codec); |
|
|
|
stream_lowres = av_codec_get_max_lowres(codec); |
|
|
|
} |
|
|
|
} |
|
|
|
av_codec_set_lowres(avctx, stream_lowres); |
|
|
|
av_codec_set_lowres(avctx, stream_lowres); |
|
|
|
avctx->error_concealment = error_concealment; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(stream_lowres) avctx->flags |= CODEC_FLAG_EMU_EDGE; |
|
|
|
if(stream_lowres) avctx->flags |= CODEC_FLAG_EMU_EDGE; |
|
|
|
if (fast) avctx->flags2 |= CODEC_FLAG2_FAST; |
|
|
|
if (fast) avctx->flags2 |= CODEC_FLAG2_FAST; |
|
|
@ -3577,7 +3575,6 @@ static const OptionDef options[] = { |
|
|
|
{ "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", ""}, |
|
|
|
{ "lowres", OPT_INT | HAS_ARG | OPT_EXPERT, { &lowres }, "", "" }, |
|
|
|
{ "lowres", OPT_INT | HAS_ARG | OPT_EXPERT, { &lowres }, "", "" }, |
|
|
|
{ "ec", OPT_INT | HAS_ARG | OPT_EXPERT, { &error_concealment }, "set error concealment options", "bit_mask" }, |
|
|
|
|
|
|
|
{ "sync", HAS_ARG | OPT_EXPERT, { .func_arg = opt_sync }, "set audio-video sync. type (type=audio/video/ext)", "type" }, |
|
|
|
{ "sync", HAS_ARG | OPT_EXPERT, { .func_arg = opt_sync }, "set audio-video sync. type (type=audio/video/ext)", "type" }, |
|
|
|
{ "autoexit", OPT_BOOL | OPT_EXPERT, { &autoexit }, "exit at the end", "" }, |
|
|
|
{ "autoexit", OPT_BOOL | OPT_EXPERT, { &autoexit }, "exit at the end", "" }, |
|
|
|
{ "exitonkeydown", OPT_BOOL | OPT_EXPERT, { &exit_on_keydown }, "exit on key down", "" }, |
|
|
|
{ "exitonkeydown", OPT_BOOL | OPT_EXPERT, { &exit_on_keydown }, "exit on key down", "" }, |
|
|
|