Mercurial > libavcodec.hg
diff 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 |
line wrap: on
line diff
--- a/libopenjpeg.c Tue Dec 29 11:53:51 2009 +0000 +++ b/libopenjpeg.c Tue Dec 29 12:00:28 2009 +0000 @@ -131,7 +131,7 @@ } break; case 4: has_alpha = 1; - avctx->pix_fmt = PIX_FMT_RGB32; + avctx->pix_fmt = PIX_FMT_RGBA; break; default: av_log(avctx, AV_LOG_ERROR, "%d components unsupported.\n", image->numcomps); goto done;