[FFmpeg-devel] [PATCH 2/6] avutil/ripemd: use EINVAL instead of -1 for the return code of av_ripemd_init()
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Sun Oct 18 21:24:22 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/ripemd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavutil/ripemd.c b/libavutil/ripemd.c
> index 0084860..d247fb4 100644
> --- a/libavutil/ripemd.c
> +++ b/libavutil/ripemd.c
> @@ -504,7 +504,7 @@ av_cold int av_ripemd_init(AVRIPEMD *ctx, int bits)
> ctx->transform = ripemd320_transform;
> break;
> default:
> - return -1;
> + return AVERROR(EINVAL);
> }
> ctx->count = 0;
> return 0;
> --
> 2.6.1
>
pushed
More information about the ffmpeg-devel
mailing list