[FFmpeg-cvslog] r20292 - trunk/libavformat/mpegtsenc.c

bcoudurier subversion
Sun Oct 18 23:41:03 CEST 2009


Author: bcoudurier
Date: Sun Oct 18 23:41:03 2009
New Revision: 20292

Log:
mux all stream types except audio as one pes packet per avpacket, issue #1374

Modified:
   trunk/libavformat/mpegtsenc.c

Modified: trunk/libavformat/mpegtsenc.c
==============================================================================
--- trunk/libavformat/mpegtsenc.c	Sun Oct 18 23:08:23 2009	(r20291)
+++ trunk/libavformat/mpegtsenc.c	Sun Oct 18 23:41:03 2009	(r20292)
@@ -741,8 +741,7 @@ static int mpegts_write_packet(AVFormatC
         }
     }
 
-    if (st->codec->codec_type == CODEC_TYPE_SUBTITLE ||
-        st->codec->codec_type == CODEC_TYPE_VIDEO) {
+    if (st->codec->codec_type != CODEC_TYPE_AUDIO) {
         // for video and subtitle, write a single pes packet
         mpegts_write_pes(s, st, buf, size, pts, dts);
         av_free(data);



More information about the ffmpeg-cvslog mailing list