forked from FFmpeg/FFmpeg
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue