changeset 10303:8a49525f2b1e libavcodec

Make TIFF decoder load compression options only for corresponding codec
author kostya
date Mon, 28 Sep 2009 05:15:27 +0000
parents 6db89678b326
children 370d05e51d90
files tiff.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tiff.c	Sun Sep 27 16:52:05 2009 +0000
+++ b/tiff.c	Mon Sep 28 05:15:27 2009 +0000
@@ -437,8 +437,12 @@
         }
         break;
     case TIFF_T4OPTIONS:
+        if(s->compr == TIFF_G3)
+            s->fax_opts = value;
+        break;
     case TIFF_T6OPTIONS:
-        s->fax_opts = value;
+        if(s->compr == TIFF_G4)
+            s->fax_opts = value;
         break;
     }
     return 0;