]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/detection_bbox.c
avutil/buffer: Switch AVBuffer API to size_t
[ffmpeg] / libavutil / detection_bbox.c
index 0750ffac6a7b8b238e96c7b453342c31876b8323..40711e6aa9c8ebac5bcda5fe4f9190df12e40881 100644 (file)
@@ -54,10 +54,6 @@ AVDetectionBBoxHeader *av_detection_bbox_create_side_data(AVFrame *frame, uint32
     header = av_detection_bbox_alloc(nb_bboxes, &size);
     if (!header)
         return NULL;
-    if (size > INT_MAX) {
-        av_freep(&header);
-        return NULL;
-    }
     buf = av_buffer_create((uint8_t *)header, size, NULL, NULL, 0);
     if (!buf) {
         av_freep(&header);