mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/exr: Return correct error code on allocation failure
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
a1ed984e04
commit
da6e137cb6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user