diff options
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -171,6 +171,8 @@ static int step = 0; static int thread_count = 1; static int workaround_bugs = 1; static int fast = 0; +static int lowres = 0; +static int idct = FF_IDCT_AUTO; /* current context */ static int is_full_screen; @@ -1173,6 +1175,8 @@ static int stream_component_open(VideoState *is, int stream_index) enc->debug_mv = debug_mv; enc->debug = debug; enc->workaround_bugs = workaround_bugs; + enc->lowres = lowres; + enc->idct_algo= idct; if(fast) enc->flags2 |= CODEC_FLAG2_FAST; if (!codec || avcodec_open(enc, codec) < 0) @@ -1832,6 +1836,8 @@ const OptionDef options[] = { { "bug", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&workaround_bugs}, "workaround bugs", "" }, { "vismv", HAS_ARG | OPT_EXPERT, {(void*)opt_vismv}, "visualize motion vectors", "" }, { "fast", OPT_BOOL | OPT_EXPERT, {(void*)&fast}, "non spec compliant optimizations", "" }, + { "lowres", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&lowres}, "", "" }, + { "idct", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&idct}, "set idct algo", "algo" }, #ifdef CONFIG_NETWORK { "rtp_tcp", OPT_EXPERT, {(void*)&opt_rtp_tcp}, "force RTP/TCP protocol usage", "" }, #endif |