diff options
author | James Almer <jamrial@gmail.com> | 2021-02-12 10:36:59 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-02-12 10:36:59 -0300 |
commit | 000b25096b9727b423e3575a630d98f8c3a8ce84 (patch) | |
tree | ede28411e7fa84fe7fba77c1319f5cdd245cb718 | |
parent | edc45d1bd50dd51e11e453f60ecc3770482cd544 (diff) | |
download | ffmpeg-000b25096b9727b423e3575a630d98f8c3a8ce84.tar.gz |
avcodec/hevcdec: fix a return error value
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavcodec/hevcdec.c | 2 |
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)); |