IDCT works, and ieeetest not complains nicely if attempt to run a test with an unsupp...
authorRichard Boulton <richard@tartarus.org>
Thu, 21 Sep 2000 01:42:19 +0000 (01:42 +0000)
committerRichard Boulton <richard@tartarus.org>
Thu, 21 Sep 2000 01:42:19 +0000 (01:42 +0000)
Original commit message from CVS:
IDCT works, and ieeetest not complains nicely if attempt to run a test
with an unsupported DCT type.

libs/idct/ieeetest.c

index 86e0ef0..396c25e 100644 (file)
@@ -82,6 +82,11 @@ main(int argc, char **argv)
   gst_library_load("gstidct");
 
   idct = gst_idct_new(method);
+  if (idct == 0) {
+    printf("method not available\n\n\n");
+
+    return 0;
+  }
 
   dct_init();