Revision dbfdb288 libavcodec/tiff.c

View differences:

libavcodec/tiff.c
429 429
        bp = buf + count / 3 * off * 2;
430 430
        off = (type_sizes[type] - 1) << 3;
431 431
        for(i = 0; i < count / 3; i++){
432
            j = (tget(&rp, type, s->le) >> off) << 16;
432
            j = 0xff << 24;
433
            j |= (tget(&rp, type, s->le) >> off) << 16;
433 434
            j |= (tget(&gp, type, s->le) >> off) << 8;
434 435
            j |= tget(&bp, type, s->le) >> off;
435 436
            pal[i] = j;

Also available in: Unified diff