[vlc-commits] codec: scte27: fix reading YCrCb into YCbCr (fix #17787)

Francois Cartegnie git at videolan.org
Fri Dec 16 15:55:38 CET 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Dec 16 15:52:03 2016 +0100| [57b6d3be82f6447481c126b1b8d3d8b3885d18d7] | committer: Francois Cartegnie

codec: scte27: fix reading YCrCb into YCbCr (fix #17787)

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

 modules/codec/scte27.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/scte27.c b/modules/codec/scte27.c
index 8696710..03b7b2d 100644
--- a/modules/codec/scte27.c
+++ b/modules/codec/scte27.c
@@ -76,8 +76,8 @@ static scte27_color_t bs_read_color(bs_t *bs)
     /* XXX it's unclear if a value of 0 in Y/U/V means a transparent pixel */
     color.y     = bs_read(bs, 5) << 3;
     color.alpha = bs_read1(bs) ? 0xff : 0x80;
-    color.u     = bs_read(bs, 5) << 3;
     color.v     = bs_read(bs, 5) << 3;
+    color.u     = bs_read(bs, 5) << 3;
 
     return color;
 }



More information about the vlc-commits mailing list