[vlc-commits] demux: mp4: text/tx3g defaults to codec tx3G (fix #14045)

Francois Cartegnie git at videolan.org
Mon Mar 2 16:35:57 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Mar  2 16:33:57 2015 +0100| [47f8a34b48ecff9a3371348042f8f3b3e9bedc2c] | committer: Francois Cartegnie

demux: mp4: text/tx3g defaults to codec tx3G (fix #14045)

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

 modules/demux/mp4/mp4.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index e221024..f577454 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -1813,7 +1813,7 @@ static void LoadChapter( demux_t  *p_demux )
             {
                 mp4_track_t *tk = &p_sys->track[j];
                 if( tk->b_ok && tk->i_track_ID == p_chap->i_track_ID[i] &&
-                    tk->fmt.i_cat == SPU_ES && tk->fmt.i_codec == VLC_CODEC_SUBT )
+                    tk->fmt.i_cat == SPU_ES && tk->fmt.i_codec == VLC_CODEC_TX3G )
                     break;
             }
             if( j < p_sys->i_tracks )
@@ -2701,7 +2701,6 @@ static void MP4_TrackCreate( demux_t *p_demux, mp4_track_t *p_track,
         case( ATOM_text ):
         case( ATOM_subp ):
         case( ATOM_sbtl ):
-            p_track->fmt.i_codec = VLC_CODEC_TX3G;
             p_track->fmt.i_cat = SPU_ES;
             break;
 



More information about the vlc-commits mailing list