[vlc-commits] demux: mp4: add unusual BGR mappings
Francois Cartegnie
git at videolan.org
Wed Nov 20 09:00:54 CET 2019
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Nov 20 15:44:42 2019 +0900| [fe489afd03fc820767b1a684d2bea3f4e201cbd4] | committer: Francois Cartegnie
demux: mp4: add unusual BGR mappings
refs #23079
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fe489afd03fc820767b1a684d2bea3f4e201cbd4
---
modules/demux/mp4/essetup.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/modules/demux/mp4/essetup.c b/modules/demux/mp4/essetup.c
index 5a689402ac..9d78e63fe5 100644
--- a/modules/demux/mp4/essetup.c
+++ b/modules/demux/mp4/essetup.c
@@ -403,6 +403,18 @@ int SetupVideoES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
case VLC_FOURCC('y','u','v','2'):
p_track->fmt.i_codec = VLC_CODEC_YUYV;
break;
+ case VLC_FOURCC('A','B','G','R'):
+ p_track->fmt.i_codec = VLC_CODEC_ARGB;
+ p_track->fmt.video.i_rmask = 0x0000FF;
+ p_track->fmt.video.i_gmask = 0x00FF00;
+ p_track->fmt.video.i_bmask = 0xFF0000;
+ break;
+ case VLC_FOURCC('2','4','B','G'):
+ p_track->fmt.i_codec = VLC_CODEC_RGB24;
+ p_track->fmt.video.i_rmask = 0x0000FF;
+ p_track->fmt.video.i_gmask = 0x00FF00;
+ p_track->fmt.video.i_bmask = 0xFF0000;
+ break;
case VLC_FOURCC('r','a','w',' '):
switch( p_vide->i_depth ) {
case 16:
More information about the vlc-commits
mailing list