ffmpeg | branch: master | James Almer <jamr...@gmail.com> | Fri Feb 12 10:36:59 
2021 -0300| [000b25096b9727b423e3575a630d98f8c3a8ce84] | committer: James Almer

avcodec/hevcdec: fix a return error value

Signed-off-by: James Almer <jamr...@gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=000b25096b9727b423e3575a630d98f8c3a8ce84
---

 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));

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to