Carl Eugen Hoyos <[email protected]> added the comment:

Please try attached patch.

_____________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1540>
_____________________________________________________
Index: libavcodec/libopenjpeg.c
===================================================================
--- libavcodec/libopenjpeg.c	(revision 20893)
+++ libavcodec/libopenjpeg.c	(working copy)
@@ -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;

Reply via email to