]> git.sesse.net Git - vlc/commitdiff
Used VLC_CODEC_OGT/CVD in ps demuxer.
authorLaurent Aimar <fenrir@videolan.org>
Wed, 26 May 2010 21:31:50 +0000 (23:31 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 26 May 2010 21:43:44 +0000 (23:43 +0200)
modules/demux/ps.c
modules/demux/ps.h

index ffab1e7e0c0a498768c21d178cbf453f4d407447..7bdb388f8652fe2655539ee2c69b2b4edfcf7ea3 100644 (file)
@@ -391,8 +391,8 @@ static int Demux( demux_t *p_demux )
             /* The popular VCD/SVCD subtitling WinSubMux does not
              * renumber the SCRs when merging subtitles into the PES */
             if( tk->b_seen &&
-                ( tk->fmt.i_codec == VLC_FOURCC('o','g','t',' ') ||
-                  tk->fmt.i_codec == VLC_FOURCC('c','v','d',' ') ) )
+                ( tk->fmt.i_codec == VLC_CODEC_OGT ||
+                  tk->fmt.i_codec == VLC_CODEC_CVD ) )
             {
                 p_sys->i_scr = -1;
             }
index ae778d6914c26e15352cedea03a71a271a4a33a7..c432faa3eb35f656c9920d68fa57861a70712c5d 100644 (file)
@@ -112,11 +112,11 @@ static inline int ps_track_fill( ps_track_t *tk, ps_psm_t *p_psm, int i_id )
         }
         else if( ( i_id&0xff ) == 0x70 )
         {
-            es_format_Init( &tk->fmt, SPU_ES, VLC_FOURCC('o','g','t',' ') );
+            es_format_Init( &tk->fmt, SPU_ES, VLC_CODEC_OGT );
         }
         else if( ( i_id&0xfc ) == 0x00 )
         {
-            es_format_Init( &tk->fmt, SPU_ES, VLC_FOURCC('c','v','d',' ') );
+            es_format_Init( &tk->fmt, SPU_ES, VLC_CODEC_CVD );
         }
         else if( ( i_id&0xff ) == 0x10 )
         {