[vlc-commits] demux: mp4: set priority of forced subtitles
Francois Cartegnie
git at videolan.org
Mon Apr 11 20:50:29 CEST 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Apr 11 20:49:30 2016 +0200| [86a419d74227ae44d63fe5af5b4224af6715b1f7] | committer: Francois Cartegnie
demux: mp4: set priority of forced subtitles
refs #16803
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=86a419d74227ae44d63fe5af5b4224af6715b1f7
---
modules/demux/mp4/essetup.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/demux/mp4/essetup.c b/modules/demux/mp4/essetup.c
index bca3b7b..a8f39e5 100644
--- a/modules/demux/mp4/essetup.c
+++ b/modules/demux/mp4/essetup.c
@@ -865,6 +865,9 @@ int SetupSpuES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
{
p_track->fmt.i_codec = VLC_CODEC_TX3G;
+ if( p_text->i_display_flags & 0xC0000000 )
+ p_track->fmt.i_priority = ES_PRIORITY_SELECTABLE_MIN + 1;
+
text_style_t *p_style = text_style_Create( STYLE_NO_DEFAULTS );
if ( p_style )
{
More information about the vlc-commits
mailing list