ocv: replace FF_INTERNAL_MEM_TYPE_MAX_VALUE with SIZE_MAX
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Thu, 21 Apr 2011 08:31:48 +0000 (10:31 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Thu, 21 Apr 2011 08:33:03 +0000 (10:33 +0200)
Fix compilatin after removal of FF_INTERNAL_MEM_TYPE_MAX_VALUE.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
libavfilter/vf_libopencv.c

index 8401b4d..55e0a7f 100644 (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;