vlc | branch: master | Francois Cartegnie <[email protected]> | Wed Nov 14 
11:02:36 2018 +0100| [3ab8b01533c7311b50878eb9f85dcff72c0003ee] | committer: 
Francois Cartegnie

codec: jpeg: set bitmask

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

 modules/codec/jpeg.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/jpeg.c b/modules/codec/jpeg.c
index c0af8ad1da..e72382cd9a 100644
--- a/modules/codec/jpeg.c
+++ b/modules/codec/jpeg.c
@@ -177,9 +177,11 @@ static int OpenDecoder(vlc_object_t *p_this)
     /* Set callbacks */
     p_dec->pf_decode = DecodeBlock;
 
+    p_dec->fmt_out.video.i_chroma =
     p_dec->fmt_out.i_codec = VLC_CODEC_RGB24;
     p_dec->fmt_out.video.transfer = TRANSFER_FUNC_SRGB;
     p_dec->fmt_out.video.b_color_range_full = true;
+    video_format_FixRgb(&p_dec->fmt_out.video);
 
     return VLC_SUCCESS;
 }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to