Fixes ticket 1127.

I'm still looking into why bpp is getting set to 0.
This commit is contained in:
Michael Bradshaw 2012-03-28 10:22:49 -06:00
parent 99bb88c588
commit b678dd9690
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx,
avcodec_set_dimensions(avctx, width, height);
switch (image->numcomps) {
case 1: avctx->pix_fmt = (image->comps[0].bpp == 8) ? PIX_FMT_GRAY8 : PIX_FMT_GRAY16;
case 1: avctx->pix_fmt = (image->comps[0].prec == 8) ? PIX_FMT_GRAY8 : PIX_FMT_GRAY16;
break;
case 2: avctx->pix_fmt = PIX_FMT_GRAY8A;
break;