Added S_TEXT/ASCII codec to matroska.
authorLaurent Aimar <fenrir@videolan.org>
Mon, 15 Dec 2008 20:49:38 +0000 (21:49 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 15 Dec 2008 21:16:51 +0000 (22:16 +0100)
modules/demux/mkv/matroska_segment.cpp

index 2341d43..fb8172f 100644 (file)
@@ -1033,6 +1033,11 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
                 i_extra += i_size[i];
             }
         }
+        else if( !strcmp( tracks[i_track]->psz_codec, "S_TEXT/ASCII" ) )
+        {
+            p_fmt->i_codec = VLC_FOURCC( 's', 'u', 'b', 't' );
+            p_fmt->subs.psz_encoding = NULL; /* Is there a place where it is stored ? */
+        }
         else if( !strcmp( tracks[i_track]->psz_codec, "S_TEXT/UTF8" ) )
         {
             tracks[i_track]->fmt.i_codec = VLC_FOURCC( 's', 'u', 'b', 't' );