[FFmpeg-cvslog] r16189 - trunk/libavcodec/tiff.c

kostya subversion
Wed Dec 17 18:39:35 CET 2008


Author: kostya
Date: Wed Dec 17 18:39:35 2008
New Revision: 16189

Log:
4l: TIFF stores short strings inside tag, do not interpret it is as an offset

Fixes issue 753
-This line, and those below, will be ignored--

M    libavcodec/tiff.c


Modified:
   trunk/libavcodec/tiff.c

Modified: trunk/libavcodec/tiff.c
==============================================================================
--- trunk/libavcodec/tiff.c	(original)
+++ trunk/libavcodec/tiff.c	Wed Dec 17 18:39:35 2008
@@ -176,6 +176,11 @@ static int tiff_decode_tag(TiffContext *
             value = off;
             buf = NULL;
             break;
+        case TIFF_STRING:
+            if(count <= 4){
+                buf -= 4;
+                break;
+            }
         default:
             value = -1;
             buf = start + off;




More information about the ffmpeg-cvslog mailing list