Commit 4784a135 authored by Piotr Bandurski's avatar Piotr Bandurski Committed by Michael Niedermayer

tiffdec: Use the correct height field.

Fixes Ticket913
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8bf70159
...@@ -772,7 +772,7 @@ static int tiff_decode_tag(TiffContext *s) ...@@ -772,7 +772,7 @@ static int tiff_decode_tag(TiffContext *s)
break; break;
case TIFF_ROWSPERSTRIP: case TIFF_ROWSPERSTRIP:
if (type == TIFF_LONG && value == UINT_MAX) if (type == TIFF_LONG && value == UINT_MAX)
value = s->avctx->height; value = s->height;
if (value < 1) { if (value < 1) {
av_log(s->avctx, AV_LOG_ERROR, av_log(s->avctx, AV_LOG_ERROR,
"Incorrect value of rows per strip\n"); "Incorrect value of rows per strip\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment