Fixing a bug. An error was printed if no restorator was applied.
authorviric@llimona
Fri, 13 Oct 2006 11:22:22 +0200
changeset 71 889a395c6f1a
parent 70 f12930b16600
child 72 d1c2ccfff97f
Fixing a bug. An error was printed if no restorator was applied.
src/jpeg-7a/jdrapi.c
--- a/src/jpeg-7a/jdrapi.c	Sun Oct 08 17:18:42 2006 +0200
+++ b/src/jpeg-7a/jdrapi.c	Fri Oct 13 11:22:22 2006 +0200
@@ -76,9 +76,6 @@
 rest_process_restorators(j_decompress_ptr cinfo,
     JSAMPIMAGE output_buf, const jvirt_barray_ptr whole_image[])
 {
-  if (cinfo->rest == NULL)
-    ERREXIT(cinfo, JERR_REST_INVALID);
-
   /* !!! Check colorspace !!! */
   /* Process the plane unpacking */
   apply_plane_idct(cinfo, JREST_TARGET_IDCT_Y, output_buf, whole_image);