Ticket #913: tiff.diff

File tiff.diff, 491 bytes (added by ami_stuff, 4 years ago)
  • libavcodec/tiff.c

    diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
    index e92967d..c2c8e02 100644
    a b static int tiff_decode_tag(TiffContext *s) 
    769769        break; 
    770770    case TIFF_ROWSPERSTRIP: 
    771771        if (type == TIFF_LONG && value == UINT_MAX) 
    772             value = s->avctx->height; 
     772            value = s->height; 
    773773        if (value < 1) { 
    774774            av_log(s->avctx, AV_LOG_ERROR, 
    775775                   "Incorrect value of rows per strip\n");