Skip to content
Snippets Groups Projects
Commit 5a0a6ae6 authored by Stefano Sabatini's avatar Stefano Sabatini Committed by Anton Khirnov
Browse files

ocv: replace FF_INTERNAL_MEM_TYPE_MAX_VALUE with SIZE_MAX


Fix compilatin after removal of FF_INTERNAL_MEM_TYPE_MAX_VALUE.

Signed-off-by: default avatarStefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>
parent 702a62a1
No related branches found
No related tags found
No related merge requests found
......@@ -158,7 +158,7 @@ static int read_shape_from_file(int *cols, int *rows, int **values, const char *
}
w++;
}
if (*rows > (FF_INTERNAL_MEM_TYPE_MAX_VALUE / (sizeof(int)) / *cols)) {
if (*rows > (SIZE_MAX / sizeof(int) / *cols)) {
av_log(log_ctx, AV_LOG_ERROR, "File with size %dx%d is too big\n",
*rows, *cols);
return AVERROR_INVALIDDATA;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment