]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/qdrw.c
avfilter/formats: Remove avfilter_make_format64_list()
[ffmpeg] / libavcodec / qdrw.c
index 32ba41096863a5a35381f98201728d818da15b98..65279c98052b81a129c6fa901c5c025525b68d9c 100644 (file)
@@ -455,6 +455,8 @@ static int decode_frame(AVCodecContext *avctx,
                 avpriv_request_sample(avctx, "Pack type %d", pack_type);
                 return AVERROR_PATCHWELCOME;
             }
+            if (bytestream2_get_bytes_left(&gbc) < 30)
+                return AVERROR_INVALIDDATA;
             if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
                 return ret;