[FFmpeg-devel] [PATCH] reduce score returned by FLIC format

Mike Melanson mike
Wed Mar 26 15:17:21 CET 2008


Mike Melanson wrote:
> Here's a patch. Sane enough? I declared that each dimension must be
> between 4..2048. That should be generous enough. And I also used Aurel's
> suggestion (90% sure).

+    /* sanity-check the dimensions */
+    if ((width < 4) && (width > 2048))
+        return 0;
+    if ((height < 4) && (height > 2048))
+        return 0;

Oops, just noticed that the operators should be '||', not '&&'. Any
critiques besides that are welcome.

-- 
	-Mike Melanson




More information about the ffmpeg-devel mailing list