X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Fdetection_bbox.c;h=40711e6aa9c8ebac5bcda5fe4f9190df12e40881;hb=ef6a9e5e311f09fa8032974fa4d0c1e166a959bb;hp=0750ffac6a7b8b238e96c7b453342c31876b8323;hpb=985c0dac674846721ec8ff23344c16ac7d1c9a1e;p=ffmpeg diff --git a/libavutil/detection_bbox.c b/libavutil/detection_bbox.c index 0750ffac6a7..40711e6aa9c 100644 --- a/libavutil/detection_bbox.c +++ b/libavutil/detection_bbox.c @@ -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);