On Sun, Aug 17, 2014 at 10:53:27PM +0100, Diego Elio Pettenò wrote:
> The LZMA support was added to tiff 4.0.0. Whle not very common, it's nice
                                              ^ whIle
> to tell the user why the file is not working.

Also what's the versioning? IIRC the last official standard was TIFF 6.0 

> Signed-off-by: Diego Elio Pettenò <flamee...@flameeyes.eu>
> ---
>  libavcodec/tiff.c | 3 +++
>  libavcodec/tiff.h | 3 ++-
>  2 files changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
> index ca5ec75..3b2fc7d 100644
> --- a/libavcodec/tiff.c
> +++ b/libavcodec/tiff.c
> @@ -408,6 +408,9 @@ static int tiff_decode_tag(TiffContext *s)
>          case TIFF_NEWJPEG:
>              avpriv_report_missing_feature(s->avctx, "JPEG compression");
>              return AVERROR_PATCHWELCOME;
> +        case TIFF_LZMA:
> +            avpriv_report_missing_feature(s->avctx, "LZMA compression");
> +            return AVERROR_PATCHWELCOME;
>          default:
>              av_log(s->avctx, AV_LOG_ERROR, "Unknown compression method %i\n",
>                     s->compr);
> diff --git a/libavcodec/tiff.h b/libavcodec/tiff.h
> index 8a3f7f7..c42fa41 100644
> --- a/libavcodec/tiff.h
> +++ b/libavcodec/tiff.h
> @@ -71,7 +71,8 @@ enum TiffCompr {
>      TIFF_NEWJPEG,
>      TIFF_ADOBE_DEFLATE,
>      TIFF_PACKBITS = 0x8005,
> -    TIFF_DEFLATE  = 0x80B2
> +    TIFF_DEFLATE  = 0x80B2,
> +    TIFF_LZMA     = 0x886d
>  };
>  
>  enum TiffTypes {
> -- 

otherwise probably OK
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to