diff 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
line wrap: on
line diff
--- a/tiff.c	Wed Dec 17 09:47:06 2008 +0000
+++ b/tiff.c	Wed Dec 17 17:39:35 2008 +0000
@@ -176,6 +176,11 @@
             value = off;
             buf = NULL;
             break;
+        case TIFF_STRING:
+            if(count <= 4){
+                buf -= 4;
+                break;
+            }
         default:
             value = -1;
             buf = start + off;