[FFmpeg-cvslog] r16267 - trunk/libavcodec/tiff.c
kostya
subversion
Mon Dec 22 07:47:51 CET 2008
Author: kostya
Date: Mon Dec 22 07:47:51 2008
New Revision: 16267
Log:
Some TIFFs declare -1 for the single strip height
Modified:
trunk/libavcodec/tiff.c
Modified: trunk/libavcodec/tiff.c
==============================================================================
--- trunk/libavcodec/tiff.c (original)
+++ trunk/libavcodec/tiff.c Mon Dec 22 07:47:51 2008
@@ -293,6 +293,8 @@ static int tiff_decode_tag(TiffContext *
}
break;
case TIFF_ROWSPERSTRIP:
+ if(type == TIFF_LONG && value == -1)
+ value = s->avctx->height;
if(value < 1){
av_log(s->avctx, AV_LOG_ERROR, "Incorrect value of rows per strip\n");
return -1;
More information about the ffmpeg-cvslog
mailing list