From 807e4e81a8496d707dde0600db410731ba4c6edb Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Sun, 18 Oct 2009 21:41:03 +0000 Subject: [PATCH] mux all stream types except audio as one pes packet per avpacket, issue #1374 Originally committed as revision 20292 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mpegtsenc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 48df4386da..a8d5d38129 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -741,8 +741,7 @@ static int mpegts_write_packet(AVFormatContext *s, AVPacket *pkt) } } - 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);