[FFmpeg-cvslog] avcodec/hevcdec: fix a return error value

James Almer git at videolan.org
Fri Feb 12 15:37:45 EET 2021


ffmpeg | branch: master | James Almer <jamrial at 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 <jamrial at 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));



More information about the ffmpeg-cvslog mailing list