[vlc-commits] [Git][videolan/vlc][master] cvbsub: reorder the YUV order

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Oct 16 07:49:00 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
8b1f9fb4 by Steve Lhomme at 2023-10-16T07:17:47+00:00
cvbsub: reorder the YUV order

The documentation [1] doesn't mention the order is YVU.

[1] http://cvs.savannah.gnu.org/viewvc/vcdimager/vcdimager/docs/cvd-subtitles.pod

- - - - -


1 changed file:

- modules/codec/cvdsub.c


Changes:

=====================================
modules/codec/cvdsub.c
=====================================
@@ -408,8 +408,8 @@ static void ParseMetaInfo( decoder_t *p_dec, block_t *p_spu  )
 #endif
 
             p_sys->p_palette[v][0] = p[1]; /* Y */
-            p_sys->p_palette[v][1] = p[3]; /* Cr / V */
-            p_sys->p_palette[v][2] = p[2]; /* Cb / U */
+            p_sys->p_palette[v][1] = p[2]; /* Cb / U */
+            p_sys->p_palette[v][2] = p[3]; /* Cr / V */
             break;
         }
 
@@ -428,8 +428,8 @@ static void ParseMetaInfo( decoder_t *p_dec, block_t *p_spu  )
 
             /* Highlight Palette */
             p_sys->p_palette_highlight[v][0] = p[1]; /* Y */
-            p_sys->p_palette_highlight[v][1] = p[3]; /* Cr / V */
-            p_sys->p_palette_highlight[v][2] = p[2]; /* Cb / U */
+            p_sys->p_palette_highlight[v][1] = p[2]; /* Cb / U */
+            p_sys->p_palette_highlight[v][2] = p[3]; /* Cr / V */
             break;
         }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8b1f9fb457805168d1faa618cdac19cdcc0dfbca

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8b1f9fb457805168d1faa618cdac19cdcc0dfbca
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list