[FFmpeg-cvslog] avcodec/huffyuvenc: Don't second-guess error code
Andreas Rheinhardt
git at videolan.org
Sun Oct 9 10:24:48 EEST 2022
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sat Oct 1 21:29:34 2022 +0200| [9ec50660ad49ddb92fcbf43c61a6871cf1170f71] | committer: Andreas Rheinhardt
avcodec/huffyuvenc: Don't second-guess error code
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9ec50660ad49ddb92fcbf43c61a6871cf1170f71
---
libavcodec/huffyuvenc.c | 6 +++---
1 file 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;
More information about the ffmpeg-cvslog
mailing list