diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-01 21:29:34 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-09 09:15:39 +0200 |
commit | 9ec50660ad49ddb92fcbf43c61a6871cf1170f71 (patch) | |
tree | 45fac121ccc778b369f34f592e48cb17eca588b7 /libavcodec/huffyuvenc.c | |
parent | 75842c35e7698eba2114a84b2854c3c130b2f2d4 (diff) | |
download | ffmpeg-9ec50660ad49ddb92fcbf43c61a6871cf1170f71.tar.gz |
avcodec/huffyuvenc: Don't second-guess error code
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/huffyuvenc.c')
-rw-r--r-- | libavcodec/huffyuvenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/huffyuvenc.c b/libavcodec/huffyuvenc.c index 8867de0d44..84ab7f423a 100644 --- a/libavcodec/huffyuvenc.c +++ b/libavcodec/huffyuvenc.c @@ -391,9 +391,9 @@ static av_cold int encode_init(AVCodecContext *avctx) s->stats[i][j]= 0; } - if (ff_huffyuv_alloc_temp(s)) { - return AVERROR(ENOMEM); - } + ret = ff_huffyuv_alloc_temp(s); + if (ret < 0) + return ret; s->picture_number=0; |