[vlc-commits] codec: png: encoder wants RGB

Francois Cartegnie git at videolan.org
Thu Dec 21 11:10:43 CET 2017


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Dec 20 19:18:25 2017 +0100| [a9b274ce1cce1157504c3db4a1627a1db32f004f] | committer: Francois Cartegnie

codec: png: encoder wants RGB

refs #13349

(cherry picked from commit 68a0e6fff4f61a1da92c931eea0d5efeeebae5b9)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=a9b274ce1cce1157504c3db4a1627a1db32f004f
---

 modules/codec/png.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/codec/png.c b/modules/codec/png.c
index 9bcbdf4796..e9bc71c6a7 100644
--- a/modules/codec/png.c
+++ b/modules/codec/png.c
@@ -346,6 +346,9 @@ static int OpenEncoder(vlc_object_t *p_this)
         p_enc->fmt_in.video.i_visible_height;
 
     p_enc->fmt_in.i_codec = VLC_CODEC_RGB24;
+    p_enc->fmt_in.video.i_bmask = 0;
+    video_format_FixRgb( &p_enc->fmt_in.video );
+
     p_enc->pf_encode_video = EncodeBlock;
 
     return VLC_SUCCESS;



More information about the vlc-commits mailing list