Ticket #908: tiled.diff

File tiled.diff, 891 bytes (added by ami_stuff, 15 years ago)
  • libavcodec/tiff.c

    diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
    index b0ccbac..cdb06df 100644
    a b static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t *  
    485485            return -1;
    486486        }
    487487        break;
     488    case TIFF_TILE_LENGTH:
     489        av_log(s->avctx, AV_LOG_ERROR, "Tiled segmentation is not supported\n");
     490        return -1;
     491        break;
    488492    case TIFF_PREDICTOR:
    489493        s->predictor = value;
    490494        break;
  • libavcodec/tiff.h

    diff --git a/libavcodec/tiff.h b/libavcodec/tiff.h
    index d5fad42..4bbe46c 100644
    a b enum TiffTags{  
    5656    TIFF_SOFTWARE_NAME = 0x131,
    5757    TIFF_PREDICTOR = 0x13D,
    5858    TIFF_PAL = 0x140,
     59    TIFF_TILE_LENGTH = 0x143,
    5960    TIFF_YCBCR_COEFFICIENTS = 0x211,
    6061    TIFF_YCBCR_SUBSAMPLING = 0x212,
    6162    TIFF_YCBCR_POSITIONING = 0x213,