On Sun, 16 Oct 2011 21:22:04 -0400, Dustin Brody <[email protected]> wrote:
> ---
> libavcodec/options.c | 9 +++++++--
> 1 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/libavcodec/options.c b/libavcodec/options.c
> index 75a1164..6f46536 100644
> --- a/libavcodec/options.c
> +++ b/libavcodec/options.c
> @@ -200,14 +200,19 @@ static const AVOption options[]={
> {"unofficial", "allow unofficial extensions", 0, AV_OPT_TYPE_CONST, {.dbl =
> FF_COMPLIANCE_UNOFFICIAL }, INT_MIN, INT_MAX, V|D|E, "strict"},
> {"experimental", "allow non standardized experimental things", 0,
> AV_OPT_TYPE_CONST, {.dbl = FF_COMPLIANCE_EXPERIMENTAL }, INT_MIN, INT_MAX,
> V|D|E, "strict"},
> {"b_qoffset", "qp offset between P and B frames", OFFSET(b_quant_offset),
> AV_OPT_TYPE_FLOAT, {.dbl = 1.25 }, -FLT_MAX, FLT_MAX, V|E},
> +#if FF_API_ER
> {"er", "set error detection aggressivity", OFFSET(error_recognition),
> AV_OPT_TYPE_INT, {.dbl = FF_ER_CAREFUL }, INT_MIN, INT_MAX, A|V|D, "er"},
> {"careful", NULL, 0, AV_OPT_TYPE_CONST, {.dbl = FF_ER_CAREFUL }, INT_MIN,
> INT_MAX, V|D, "er"},
> {"compliant", NULL, 0, AV_OPT_TYPE_CONST, {.dbl = FF_ER_COMPLIANT },
> INT_MIN, INT_MAX, V|D, "er"},
> {"aggressive", NULL, 0, AV_OPT_TYPE_CONST, {.dbl = FF_ER_AGGRESSIVE },
> INT_MIN, INT_MAX, V|D, "er"},
> -#if FF_API_ER
> {"very_aggressive", NULL, 0, AV_OPT_TYPE_CONST, {.dbl =
> FF_ER_VERY_AGGRESSIVE }, INT_MIN, INT_MAX, V|D, "er"},
> +{"explode", "abort decoding on error recognition", 0, FF_OPT_TYPE_CONST,
> {.dbl = FF_ER_EXPLODE }, INT_MIN, INT_MAX, V|D, "er"},
> #endif /* FF_API_ER */
> -{"explode", "abort decoding on error recognition", 0, AV_OPT_TYPE_CONST,
> {.dbl = FF_ER_EXPLODE }, INT_MIN, INT_MAX, V|D, "er"},
> +{"ef", "set error detection filter flags", OFFSET(err_recognition),
> AV_OPT_TYPE_FLAGS, {.dbl = AV_EF_CRCCHECK }, INT_MIN, INT_MAX, A|V|D, "ef"},
I'm not sure such a short name is justified, this option isn't very
common, so a longer more descriptive name would be better IMO.
> +{"crccheck", NULL, 0, FF_OPT_TYPE_CONST, {.dbl = AV_EF_CRCCHECK }, INT_MIN,
> INT_MAX, V|D, "ef"},
> +{"bitstream", NULL, 0, FF_OPT_TYPE_CONST, {.dbl = AV_EF_BITSTREAM },
> INT_MIN, INT_MAX, V|D, "ef"},
> +{"buffer", NULL, 0, FF_OPT_TYPE_CONST, {.dbl = AV_EF_BUFFER }, INT_MIN,
> INT_MAX, V|D, "ef"},
AV_OPT_TYPE please
--
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel