mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
10d2ae8cf7
commit
6d6351483f
|
@ -158,7 +158,7 @@ static int read_shape_from_file(int *cols, int *rows, int **values, const char *
|
||||||
}
|
}
|
||||||
w++;
|
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",
|
av_log(log_ctx, AV_LOG_ERROR, "File with size %dx%d is too big\n",
|
||||||
*rows, *cols);
|
*rows, *cols);
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
Loading…
Reference in New Issue