summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-07-17 10:18:10 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-07-17 10:18:10 +0000
commit1b51e051c0030d879c2ca390d9e520ce3a84ce8c (patch)
tree710ef222c0b41a0fc61f90ae95eedebbf75e59d8 /ffplay.c
parent50e2450bc1a51cd8e299437c6ec0f1083d894fee (diff)
downloadffmpeg-1b51e051c0030d879c2ca390d9e520ce3a84ce8c.tar.gz
make error concealment related options accessable from ffplays command line
Originally committed as revision 4450 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index 33d263ba5b..da998a6971 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -197,6 +197,8 @@ static int idct = FF_IDCT_AUTO;
static enum AVDiscard skip_frame= AVDISCARD_DEFAULT;
static enum AVDiscard skip_idct= AVDISCARD_DEFAULT;
static enum AVDiscard skip_loop_filter= AVDISCARD_DEFAULT;
+static int error_resilience = FF_ER_CAREFULL;
+static int error_concealment = 3;
/* current context */
static int is_full_screen;
@@ -1196,6 +1198,8 @@ static int stream_component_open(VideoState *is, int stream_index)
enc->skip_frame= skip_frame;
enc->skip_idct= skip_idct;
enc->skip_loop_filter= skip_loop_filter;
+ enc->error_resilience= error_resilience;
+ enc->error_concealment= error_concealment;
if (!codec ||
avcodec_open(enc, codec) < 0)
return -1;
@@ -1873,6 +1877,8 @@ const OptionDef options[] = {
{ "skipframe", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&skip_frame}, "", "" },
{ "skipidct", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&skip_idct}, "", "" },
{ "idct", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&idct}, "set idct algo", "algo" },
+ { "er", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&error_resilience}, "set error detection threshold (0-4)", "threshold" },
+ { "ec", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&error_concealment}, "set error concealment options", "bit_mask" },
#ifdef CONFIG_NETWORK
{ "rtp_tcp", OPT_EXPERT, {(void*)&opt_rtp_tcp}, "force RTP/TCP protocol usage", "" },
#endif