On Wed, May 19, 2021 at 05:07:44PM +0300, Valerii Zapodovnikov wrote:
> ---
>  libavcodec/j2kenc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c
> index 82ad3284b5..0b27f9adf5 100644
> --- a/libavcodec/j2kenc.c
> +++ b/libavcodec/j2kenc.c
> @@ -1813,7 +1813,7 @@ static const AVOption options[] = {
>      { "tile_height",   "Tile Height",       OFFSET(tile_height),   
> AV_OPT_TYPE_INT,   { .i64 = 256         }, 1,     1<<30,           VE, },
>      { "pred",          "DWT Type",          OFFSET(pred),          
> AV_OPT_TYPE_INT,   { .i64 = 0           }, 0,         1,           VE, "pred" 
>        },
>      { "dwt97int",      NULL,                0,                     
> AV_OPT_TYPE_CONST, { .i64 = 0           }, INT_MIN, INT_MAX,       VE, "pred" 
>        },
> -    { "dwt53",         NULL,                0,                     
> AV_OPT_TYPE_CONST, { .i64 = 0           }, INT_MIN, INT_MAX,       VE, "pred" 
>        },
> +    { "dwt53",         NULL,                0,                     
> AV_OPT_TYPE_CONST, { .i64 = 1           }, INT_MIN, INT_MAX,       VE, "pred" 
>        },

please used named constants not litteral numbers

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to