[FFmpeg-devel] [PATCH 3/6] avutil/aes: use EINVAL instead of -1 for the return code of av_aes_init()
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Sun Oct 18 21:24:09 CEST 2015
On Sat, Oct 17, 2015 at 7:39 PM, Ganesh Ajjanagadde
<gajjanagadde at gmail.com> wrote:
> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> ---
> libavutil/aes.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavutil/aes.c b/libavutil/aes.c
> index 8d4bbbb..b59e7de 100644
> --- a/libavutil/aes.c
> +++ b/libavutil/aes.c
> @@ -223,7 +223,7 @@ int av_aes_init(AVAES *a, const uint8_t *key, int key_bits, int decrypt)
> }
>
> if (key_bits != 128 && key_bits != 192 && key_bits != 256)
> - return -1;
> + return AVERROR(EINVAL);
>
> a->rounds = rounds;
>
> --
> 2.6.1
>
pushed
More information about the ffmpeg-devel
mailing list