|
|
@ -239,7 +239,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 debug = 0; |
|
|
|
|
|
|
|
static int step = 0; |
|
|
|
static int step = 0; |
|
|
|
static int thread_count = 1; |
|
|
|
static int thread_count = 1; |
|
|
|
static int workaround_bugs = 1; |
|
|
|
static int workaround_bugs = 1; |
|
|
@ -2133,7 +2132,6 @@ static int stream_component_open(VideoState *is, int stream_index) |
|
|
|
if (!codec) |
|
|
|
if (!codec) |
|
|
|
return -1; |
|
|
|
return -1; |
|
|
|
|
|
|
|
|
|
|
|
avctx->debug = debug; |
|
|
|
|
|
|
|
avctx->workaround_bugs = workaround_bugs; |
|
|
|
avctx->workaround_bugs = workaround_bugs; |
|
|
|
avctx->lowres = lowres; |
|
|
|
avctx->lowres = lowres; |
|
|
|
if(lowres) avctx->flags |= CODEC_FLAG_EMU_EDGE; |
|
|
|
if(lowres) avctx->flags |= CODEC_FLAG_EMU_EDGE; |
|
|
@ -2883,13 +2881,6 @@ static int opt_duration(const char *opt, const char *arg) |
|
|
|
return 0; |
|
|
|
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) |
|
|
|
static int opt_thread_count(const char *opt, const char *arg) |
|
|
|
{ |
|
|
|
{ |
|
|
|
thread_count= parse_number_or_die(opt, arg, OPT_INT64, 0, INT_MAX); |
|
|
|
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" }, |
|
|
|
{ "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" }, |
|
|
|
{ "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", "" }, |
|
|
|
{ "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", "" }, |
|
|
|
{ "bug", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&workaround_bugs}, "workaround bugs", "" }, |
|
|
|
{ "fast", OPT_BOOL | OPT_EXPERT, {(void*)&fast}, "non spec compliant optimizations", "" }, |
|
|
|
{ "fast", OPT_BOOL | OPT_EXPERT, {(void*)&fast}, "non spec compliant optimizations", "" }, |
|
|
|
{ "genpts", OPT_BOOL | OPT_EXPERT, {(void*)&genpts}, "generate pts", "" }, |
|
|
|
{ "genpts", OPT_BOOL | OPT_EXPERT, {(void*)&genpts}, "generate pts", "" }, |
|
|
|