diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-04-21 10:31:48 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-04-21 10:33:03 +0200 |
commit | 6d6351483fe94b7ae4938717b477014f42500145 (patch) | |
tree | cd61011a893db816c174a538afbdf9b0dbd1afbf /libavfilter/vf_libopencv.c | |
parent | 10d2ae8cf78ed7e23c6342200fa4d8a5355e87f2 (diff) | |
download | ffmpeg-6d6351483fe94b7ae4938717b477014f42500145.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>
Diffstat (limited to 'libavfilter/vf_libopencv.c')
-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 8401b4dcb7..55e0a7f757 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; |