Commit 2d766a5a authored by cehoyos's avatar cehoyos

Fix colours for QT JPEG2000, fixes issue 1540.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20963 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 41a90825
......@@ -131,7 +131,7 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx,
}
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment