diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-04-21 10:31:48 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-06-20 20:54:40 +0200 |
commit | 5a0a6ae639ac791ddebce64e2c316186d1db575c (patch) | |
tree | 426980257b4d159b1ccee604e9f8882a0c1d20f1 | |
parent | 702a62a1c6b97a8befa114da4ab4aa2b541352af (diff) | |
download | ffmpeg-5a0a6ae639ac791ddebce64e2c316186d1db575c.tar.gz |
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>
-rw-r--r-- | libavfilter/vf_libopencv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c index 509b1d96dc..5a52f246ba 100644 --- a/libavfilter/vf_libopencv.c +++ b/libavfilter/vf_libopencv.c @@ -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; |