Revision 1b51e051

View differences:

ffplay.c
197 197
static enum AVDiscard skip_frame= AVDISCARD_DEFAULT;
198 198
static enum AVDiscard skip_idct= AVDISCARD_DEFAULT;
199 199
static enum AVDiscard skip_loop_filter= AVDISCARD_DEFAULT;
200
static int error_resilience = FF_ER_CAREFULL;
201
static int error_concealment = 3;
200 202

  
201 203
/* current context */
202 204
static int is_full_screen;
......
1196 1198
    enc->skip_frame= skip_frame;
1197 1199
    enc->skip_idct= skip_idct;
1198 1200
    enc->skip_loop_filter= skip_loop_filter;
1201
    enc->error_resilience= error_resilience;
1202
    enc->error_concealment= error_concealment;
1199 1203
    if (!codec ||
1200 1204
        avcodec_open(enc, codec) < 0)
1201 1205
        return -1;
......
1873 1877
    { "skipframe", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&skip_frame}, "", "" },
1874 1878
    { "skipidct", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&skip_idct}, "", "" },
1875 1879
    { "idct", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&idct}, "set idct algo",  "algo" },
1880
    { "er", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&error_resilience}, "set error detection threshold (0-4)",  "threshold" },
1881
    { "ec", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&error_concealment}, "set error concealment options",  "bit_mask" },
1876 1882
#ifdef CONFIG_NETWORK
1877 1883
    { "rtp_tcp", OPT_EXPERT, {(void*)&opt_rtp_tcp}, "force RTP/TCP protocol usage", "" },
1878 1884
#endif

Also available in: Unified diff