Skip to content
Snippets Groups Projects
Commit a80459fd authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos
Browse files

Fix colours for QT JPEG2000, fixes issue 1540.

Originally committed as revision 20963 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 484d1464
No related branches found
No related tags found
No related merge requests found
...@@ -131,7 +131,7 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx, ...@@ -131,7 +131,7 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx,
} }
break; break;
case 4: has_alpha = 1; case 4: has_alpha = 1;
avctx->pix_fmt = PIX_FMT_RGB32; avctx->pix_fmt = PIX_FMT_RGBA;
break; break;
default: av_log(avctx, AV_LOG_ERROR, "%d components unsupported.\n", image->numcomps); default: av_log(avctx, AV_LOG_ERROR, "%d components unsupported.\n", image->numcomps);
goto done; goto done;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment