Carl Eugen Hoyos <ceho...@rainbow.studorg.tuwien.ac.at> added the comment:

Attached patch fixes the issue for me on little-endian, somebody should please
test on big-endian.

----------
substatus: open -> reproduced

_____________________________________________________
FFmpeg issue tracker <iss...@roundup.ffmpeg.org>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1540>
_____________________________________________________
Index: libavcodec/libopenjpeg.c
===================================================================
--- libavcodec/libopenjpeg.c	(revision 20736)
+++ 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_BGR32;
                  break;
         default: av_log(avctx, AV_LOG_ERROR, "%d components unsupported.\n", image->numcomps);
                  goto done;

Reply via email to