Browse Source

Supoort decoding of gray16 images with libopenjpeg.

tags/n0.11
Michael Bradshaw Carl Eugen Hoyos 14 years ago
parent
commit
f0d6828dbe
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libopenjpegdec.c

+ 1
- 1
libavcodec/libopenjpegdec.c View File

@@ -258,7 +258,7 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx,
avcodec_set_dimensions(avctx, width, height);

switch (image->numcomps) {
case 1: avctx->pix_fmt = PIX_FMT_GRAY8;
case 1: avctx->pix_fmt = (image->comps[0].bpp == 8) ? PIX_FMT_GRAY8 : PIX_FMT_GRAY16;
break;
case 3: avctx->pix_fmt = check_image_attributes(avctx, image);
break;


Loading…
Cancel
Save