diff options
author | Piotr Bandurski <ami_stuff@o2.pl> | 2013-01-06 01:56:23 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-01-07 00:34:31 +0100 |
commit | fe0e64ca6431c2f606bc702c1a4e230f22531a4f (patch) | |
tree | 36d57b653675d0522c6edf7b5a6c9e024ddca3a4 | |
parent | c3d7c805bc9c1ed584e92649cd8fa8cbb7010967 (diff) | |
download | ffmpeg-fe0e64ca6431c2f606bc702c1a4e230f22531a4f.tar.gz |
tiffdec: Use the correct height field.
Fixes Ticket913
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 4784a135b2b0fe4d1b4c6256bd37265fc45aed3d)
Conflicts:
libavcodec/tiff.c
-rw-r--r-- | libavcodec/tiff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 7f5aa80207..c4da35d8e2 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -462,7 +462,7 @@ static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t * break; case TIFF_ROWSPERSTRIP: if (type == TIFF_LONG && value == UINT_MAX) - value = s->avctx->height; + value = s->height; if(value < 1){ av_log(s->avctx, AV_LOG_ERROR, "Incorrect value of rows per strip\n"); return -1; |