Commit 7c6f5238 authored by Kostya Shishkov's avatar Kostya Shishkov

Make TIFF decoder load compression options only for corresponding codec

Originally committed as revision 20064 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent ec71a8e0
...@@ -437,8 +437,12 @@ static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t * ...@@ -437,8 +437,12 @@ static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t *
} }
break; break;
case TIFF_T4OPTIONS: case TIFF_T4OPTIONS:
if(s->compr == TIFF_G3)
s->fax_opts = value;
break;
case TIFF_T6OPTIONS: case TIFF_T6OPTIONS:
s->fax_opts = value; if(s->compr == TIFF_G4)
s->fax_opts = value;
break; break;
} }
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment