]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/hevcdec.c
avformat: Remove deprecated av_demuxer_open()
[ffmpeg] / libavcodec / hevcdec.c
index 9e41136aecfe02ed5a36d94481ce377a4f97e1ff..2231aed2599b22d1745571469485d38d6d6863d0 100644 (file)
@@ -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));
@@ -3303,7 +3303,7 @@ static int hevc_decode_frame(AVCodecContext *avctx, void *data, int *got_output,
                              AVPacket *avpkt)
 {
     int ret;
-    int new_extradata_size;
+    buffer_size_t new_extradata_size;
     uint8_t *new_extradata;
     HEVCContext *s = avctx->priv_data;