Browse Source

tiff: support reading gray+alpha at 16 bits

tags/n2.4
Vittorio Giovara 10 years ago
parent
commit
bcc5f69b33
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/tiff.c

+ 3
- 0
libavcodec/tiff.c View File

@@ -262,6 +262,9 @@ static int init_image(TiffContext *s, AVFrame *frame)
case 161: case 161:
s->avctx->pix_fmt = s->le ? AV_PIX_FMT_GRAY16LE : AV_PIX_FMT_GRAY16BE; s->avctx->pix_fmt = s->le ? AV_PIX_FMT_GRAY16LE : AV_PIX_FMT_GRAY16BE;
break; break;
case 322:
s->avctx->pix_fmt = s->le ? AV_PIX_FMT_YA16LE : AV_PIX_FMT_YA16BE;
break;
case 324: case 324:
s->avctx->pix_fmt = AV_PIX_FMT_RGBA; s->avctx->pix_fmt = AV_PIX_FMT_RGBA;
break; break;


Loading…
Cancel
Save