avcodec/jpeg2000dec: Add YA16 support

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/389/head
Michael Niedermayer 2 years ago
parent fa618f5f49
commit c66e13cbac
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 4
      libavcodec/jpeg2000dec.c

@ -449,6 +449,10 @@ static int get_siz(Jpeg2000DecoderContext *s)
s->cdx[0] == s->cdx[1] && s->cdy[0] == s->cdy[1]) { s->cdx[0] == s->cdx[1] && s->cdy[0] == s->cdy[1]) {
s->avctx->pix_fmt = AV_PIX_FMT_YA8; s->avctx->pix_fmt = AV_PIX_FMT_YA8;
i = 0; i = 0;
} else if (ncomponents == 2 && s->precision == 16 &&
s->cdx[0] == s->cdx[1] && s->cdy[0] == s->cdy[1]) {
s->avctx->pix_fmt = AV_PIX_FMT_YA16;
i = 0;
} else if (ncomponents == 1 && s->precision == 8) { } else if (ncomponents == 1 && s->precision == 8) {
s->avctx->pix_fmt = AV_PIX_FMT_GRAY8; s->avctx->pix_fmt = AV_PIX_FMT_GRAY8;
i = 0; i = 0;

Loading…
Cancel
Save