Mercurial > libavcodec.hg
changeset 8428:8bf9f50ed64f libavcodec
Some TIFFs declare -1 for the single strip height
author | kostya |
---|---|
date | Mon, 22 Dec 2008 06:47:51 +0000 |
parents | 2dfb0cc864b6 |
children | b3ecaba81501 |
files | tiff.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;