changeset 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 d33b47d1f4c1
children 84a066542cd4
files tiff.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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;