Mercurial > libavcodec.hg
comparison tiff.c @ 8366:3bbfd02865d7 libavcodec
4l: TIFF stores short strings inside tag, do not interpret it is as an offset
Fixes issue 753
author | kostya |
---|---|
date | Wed, 17 Dec 2008 17:39:35 +0000 |
parents | e943e1409077 |
children | 898722eb4fd2 |
comparison
equal
deleted
inserted
replaced
8365:d33b47d1f4c1 | 8366:3bbfd02865d7 |
---|---|
174 break; | 174 break; |
175 case TIFF_LONG: | 175 case TIFF_LONG: |
176 value = off; | 176 value = off; |
177 buf = NULL; | 177 buf = NULL; |
178 break; | 178 break; |
179 case TIFF_STRING: | |
180 if(count <= 4){ | |
181 buf -= 4; | |
182 break; | |
183 } | |
179 default: | 184 default: |
180 value = -1; | 185 value = -1; |
181 buf = start + off; | 186 buf = start + off; |
182 } | 187 } |
183 }else if(type_sizes[type] * count <= 4){ | 188 }else if(type_sizes[type] * count <= 4){ |