[FFmpeg-devel] [PATCH 4/6] avutil/twofish: use EINVAL instead of -1 for the return code of av_twofish_init()
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Sun Oct 18 21:23:55 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/twofish.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavutil/twofish.c b/libavutil/twofish.c
> index f735a1f..162069b 100644
> --- a/libavutil/twofish.c
> +++ b/libavutil/twofish.c
> @@ -273,7 +273,7 @@ av_cold int av_twofish_init(AVTWOFISH *cs, const uint8_t *key, int key_bits)
> uint32_t Key[8], Me[4], Mo[4], A, B;
> const uint32_t rho = 0x01010101;
> if (key_bits < 0)
> - return -1;
> + return AVERROR(EINVAL);
> if (key_bits <= 128) {
> cs->ksize = 2;
> } else if (key_bits <= 192) {
> --
> 2.6.1
>
pushed
More information about the ffmpeg-devel
mailing list