# HG changeset patch # User kostya # Date 1229928471 0 # Node ID 8bf9f50ed64f11d13a0aa2342a1ec9a07a1b4825 # Parent 2dfb0cc864b62ed87d8db9dea92eacd1e1c3d383 Some TIFFs declare -1 for the single strip height diff -r 2dfb0cc864b6 -r 8bf9f50ed64f tiff.c --- a/tiff.c Mon Dec 22 06:43:14 2008 +0000 +++ b/tiff.c Mon Dec 22 06:47:51 2008 +0000 @@ -293,6 +293,8 @@ } 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;