Browse code

tiffdec: Use the correct height field.

Fixes Ticket913

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Piotr Bandurski authored on 2013/01/06 09:56:23
Showing 1 changed files
... ...
@@ -772,7 +772,7 @@ static int tiff_decode_tag(TiffContext *s)
772 772
         break;
773 773
     case TIFF_ROWSPERSTRIP:
774 774
         if (type == TIFF_LONG && value == UINT_MAX)
775
-            value = s->avctx->height;
775
+            value = s->height;
776 776
         if (value < 1) {
777 777
             av_log(s->avctx, AV_LOG_ERROR,
778 778
                    "Incorrect value of rows per strip\n");