[FFmpeg-devel] [PATCH 2/3] avutil/sha: use EINVAL instead of -1 for the return code of av_sha_init()

Ganesh Ajjanagadde gajjanagadde at gmail.com
Sun Oct 18 21:22:51 CEST 2015


On Sat, Oct 17, 2015 at 8:06 PM, Ganesh Ajjanagadde
<gajjanagadde at gmail.com> wrote:
> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> ---
>  libavutil/sha.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavutil/sha.c b/libavutil/sha.c
> index 9963043..748bb9c 100644
> --- a/libavutil/sha.c
> +++ b/libavutil/sha.c
> @@ -305,7 +305,7 @@ av_cold int av_sha_init(AVSHA *ctx, int bits)
>          ctx->transform = sha256_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