[FFmpeg-cvslog] r9704 - in trunk/libavformat: matroska.c matroskadec.c

aurel subversion
Mon Jul 16 16:51:43 CEST 2007


Author: aurel
Date: Mon Jul 16 16:51:43 2007
New Revision: 9704

Log:
add support for S_ASS and S_SSA codec string

Modified:
   trunk/libavformat/matroska.c
   trunk/libavformat/matroskadec.c

Modified: trunk/libavformat/matroska.c
==============================================================================
--- trunk/libavformat/matroska.c	(original)
+++ trunk/libavformat/matroska.c	Mon Jul 16 16:51:43 2007
@@ -63,6 +63,8 @@ CodecTags ff_mkv_codec_tags[]={
     {"S_TEXT/UTF8"      , CODEC_ID_TEXT},
     {"S_TEXT/ASS"       , CODEC_ID_TEXT},
     {"S_TEXT/SSA"       , CODEC_ID_TEXT},
+    {"S_ASS"            , CODEC_ID_TEXT},
+    {"S_SSA"            , CODEC_ID_TEXT},
     {"S_VOBSUB"         , CODEC_ID_DVD_SUBTITLE},
 
     {NULL               , CODEC_ID_NONE}

Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c	(original)
+++ trunk/libavformat/matroskadec.c	Mon Jul 16 16:51:43 2007
@@ -2147,7 +2147,9 @@ matroska_read_header (AVFormatContext   
             else if (codec_id == CODEC_ID_TEXT) {
                 MatroskaSubtitleTrack *subtrack=(MatroskaSubtitleTrack *)track;
                 if (!strcmp(track->codec_id, "S_TEXT/ASS") ||
-                    !strcmp(track->codec_id, "S_TEXT/SSA"))
+                    !strcmp(track->codec_id, "S_TEXT/SSA") ||
+                    !strcmp(track->codec_id, "S_ASS") ||
+                    !strcmp(track->codec_id, "S_SSA"))
                     subtrack->ass = 1;
             }
 




More information about the ffmpeg-cvslog mailing list