[FFmpeg-cvslog] avcodec/exr: Return correct error code on allocation failure
Andreas Rheinhardt
git at videolan.org
Sat Apr 24 15:05:45 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Apr 19 03:22:42 2021 +0200| [da6e137cb6e81e2389cf62dca2b1f957862a8498] | committer: Andreas Rheinhardt
avcodec/exr: Return correct error code on allocation failure
Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=da6e137cb6e81e2389cf62dca2b1f957862a8498
---
libavcodec/exr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 49c4774145..4f55609b0c 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -2245,7 +2245,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
// allocate thread data, used for non EXR_RAW compression types
s->thread_data = av_mallocz_array(avctx->thread_count, sizeof(EXRThreadData));
if (!s->thread_data)
- return AVERROR_INVALIDDATA;
+ return AVERROR(ENOMEM);
return 0;
}
More information about the ffmpeg-cvslog
mailing list