Revision a4db272a

View differences:

libavcodec/tiff.c
540 540
            soff = tget(&s->stripdata, s->sot, s->le);
541 541
        }else
542 542
            soff = s->stripoff;
543
        if (soff < 0) {
544
            av_log(avctx, AV_LOG_ERROR, "Invalid stripoff: %d\n", soff);
545
            return AVERROR(EINVAL);
546
        }
543 547
        if(tiff_unpack_strip(s, dst, stride, orig_buf + soff, ssize, FFMIN(s->rps, s->height - i)) < 0)
544 548
            break;
545 549
        dst += s->rps * stride;

Also available in: Unified diff