Commit 3f0c76e2 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '12640e4c'

* commit '12640e4c':
  tiff: Return proper error for missing LZMA compression
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents f47751a5 12640e4c
...@@ -772,6 +772,9 @@ static int tiff_decode_tag(TiffContext *s, AVFrame *frame) ...@@ -772,6 +772,9 @@ static int tiff_decode_tag(TiffContext *s, AVFrame *frame)
case TIFF_NEWJPEG: case TIFF_NEWJPEG:
avpriv_report_missing_feature(s->avctx, "JPEG compression"); avpriv_report_missing_feature(s->avctx, "JPEG compression");
return AVERROR_PATCHWELCOME; return AVERROR_PATCHWELCOME;
case TIFF_LZMA:
avpriv_report_missing_feature(s->avctx, "LZMA compression");
return AVERROR_PATCHWELCOME;
default: default:
av_log(s->avctx, AV_LOG_ERROR, "Unknown compression method %i\n", av_log(s->avctx, AV_LOG_ERROR, "Unknown compression method %i\n",
s->compr); s->compr);
......
...@@ -95,7 +95,8 @@ enum TiffCompr { ...@@ -95,7 +95,8 @@ enum TiffCompr {
TIFF_NEWJPEG, TIFF_NEWJPEG,
TIFF_ADOBE_DEFLATE, TIFF_ADOBE_DEFLATE,
TIFF_PACKBITS = 0x8005, TIFF_PACKBITS = 0x8005,
TIFF_DEFLATE = 0x80B2 TIFF_DEFLATE = 0x80B2,
TIFF_LZMA = 0x886D,
}; };
enum TiffGeoTagKey { enum TiffGeoTagKey {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment