summaryrefslogtreecommitdiff
path: root/libavutil/detection_bbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil/detection_bbox.c')
-rw-r--r--libavutil/detection_bbox.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavutil/detection_bbox.c b/libavutil/detection_bbox.c
index 0750ffac6a..40711e6aa9 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);