1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Stefano Sabatini 2011-04-21 10:31:48 +02:00 committed by Anton Khirnov
parent 702a62a1c6
commit 5a0a6ae639

View File

@ -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;