From 000b25096b9727b423e3575a630d98f8c3a8ce84 Mon Sep 17 00:00:00 2001 From: James Almer Date: Fri, 12 Feb 2021 10:36:59 -0300 Subject: [PATCH] avcodec/hevcdec: fix a return error value Signed-off-by: James Almer --- libavcodec/hevcdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index 9e41136aec..ac788a4a16 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -2639,7 +2639,7 @@ static int hls_slice_data_wpp(HEVCContext *s, const H2645NAL *nal) s->sList[i] = av_malloc(sizeof(HEVCContext)); s->HEVClcList[i] = av_mallocz(sizeof(HEVCLocalContext)); if (!s->sList[i] || !s->HEVClcList[i]) { - res = AVERROR_INVALIDDATA; + res = AVERROR(ENOMEM); goto error; } memcpy(s->sList[i], s, sizeof(HEVCContext));