avutil/buffer: Switch AVBuffer API to size_t
Announced in 14040a1d91.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
committed by
James Almer
parent
985c0dac67
commit
ef6a9e5e31
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user