[vlc-devel] [PATCH] demux: mp4: unbreak vobsub playback and read vobsub palette
Francois Cartegnie
fcvlcdev at free.fr
Sun Apr 13 19:39:01 CEST 2014
Le 09/04/2014 20:45, John Stebbins a écrit :
> + if( p_track->fmt.i_codec == VLC_CODEC_SPU &&
> + p_track->fmt.i_extra >= 16 * 4 )
> + {
> + for( int i = 0; i < 16; i++ )
> + {
> + p_track->fmt.subs.spu.palette[1 + i] =
> + GetDWBE((char*)p_track->fmt.p_extra + i * 4);
> + }
> + p_track->fmt.subs.spu.palette[0] = 0xBeef;
Looks correct. I'll commit it.
Francois
More information about the vlc-devel
mailing list