[xiph-commits] r16063 - trunk/ffmpeg2theora/src

oggk at svn.xiph.org oggk at svn.xiph.org
Sun May 31 02:57:37 PDT 2009


Author: oggk
Date: 2009-05-31 02:57:37 -0700 (Sun, 31 May 2009)
New Revision: 16063

Modified:
   trunk/ffmpeg2theora/src/ffmpeg2theora.c
Log:
slight code factoring, to help if new codecs get added



Modified: trunk/ffmpeg2theora/src/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/src/ffmpeg2theora.c	2009-05-30 21:27:38 UTC (rev 16062)
+++ trunk/ffmpeg2theora/src/ffmpeg2theora.c	2009-05-31 09:57:37 UTC (rev 16063)
@@ -792,7 +792,7 @@
           if (codec && avcodec_open (enc, codec) >= 0) {
             subtitles_opened[i] = 1;
           }
-          if (enc->codec_id == CODEC_ID_TEXT || enc->codec_id == CODEC_ID_SSA /*|| subtitles_opened[i]*/) {
+          if (is_supported_subtitle_stream(this, i)) {
             subtitles_enabled[i] = 1;
             add_subtitles_stream(this, i, find_language_for_subtitle_stream(stream), NULL);
           }



More information about the commits mailing list