Mercurial > libavcodec.hg
comparison libopenjpeg.c @ 10737:adf750125dc9 libavcodec
Fix colours for QT JPEG2000, fixes issue 1540.
author | cehoyos |
---|---|
date | Tue, 29 Dec 2009 12:00:28 +0000 |
parents | f33404f82b9e |
children | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
10736:8a9b0b693a30 | 10737:adf750125dc9 |
---|---|
129 avctx->pix_fmt = PIX_FMT_GRAY8; | 129 avctx->pix_fmt = PIX_FMT_GRAY8; |
130 av_log(avctx, AV_LOG_ERROR, "Only first component will be used.\n"); | 130 av_log(avctx, AV_LOG_ERROR, "Only first component will be used.\n"); |
131 } | 131 } |
132 break; | 132 break; |
133 case 4: has_alpha = 1; | 133 case 4: has_alpha = 1; |
134 avctx->pix_fmt = PIX_FMT_RGB32; | 134 avctx->pix_fmt = PIX_FMT_RGBA; |
135 break; | 135 break; |
136 default: av_log(avctx, AV_LOG_ERROR, "%d components unsupported.\n", image->numcomps); | 136 default: av_log(avctx, AV_LOG_ERROR, "%d components unsupported.\n", image->numcomps); |
137 goto done; | 137 goto done; |
138 } | 138 } |
139 | 139 |