summaryrefslogtreecommitdiff
path: root/libavcodec/hevcdec.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-02-12 10:36:59 -0300
committerJames Almer <jamrial@gmail.com>2021-02-12 10:36:59 -0300
commit000b25096b9727b423e3575a630d98f8c3a8ce84 (patch)
treeede28411e7fa84fe7fba77c1319f5cdd245cb718 /libavcodec/hevcdec.c
parentedc45d1bd50dd51e11e453f60ecc3770482cd544 (diff)
avcodec/hevcdec: fix a return error value
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/hevcdec.c')
-rw-r--r--libavcodec/hevcdec.c2
1 files changed, 1 insertions, 1 deletions
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));