1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-03 01:39:58 +02:00

Make TIFF decoder load compression options only for corresponding codec

Originally committed as revision 20064 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Kostya Shishkov 2009-09-28 05:15:27 +00:00
parent ec71a8e00b
commit 7c6f5238c6

View File

@ -437,8 +437,12 @@ static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t *
}
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;