summaryrefslogtreecommitdiffstats
path: root/libavformat/mpegtsenc.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-10-18 21:41:03 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-10-18 21:41:03 +0000
commit807e4e81a8496d707dde0600db410731ba4c6edb (patch)
tree3693cb19d5d8b98bd4d955053f87eb029641f635 /libavformat/mpegtsenc.c
parent10a693b568e5062f385f57c2f20390894b30ba92 (diff)
downloadffmpeg-streaming-807e4e81a8496d707dde0600db410731ba4c6edb.zip
ffmpeg-streaming-807e4e81a8496d707dde0600db410731ba4c6edb.tar.gz
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
Diffstat (limited to 'libavformat/mpegtsenc.c')
-rw-r--r--libavformat/mpegtsenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index 48df438..a8d5d38 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);
OpenPOWER on IntegriCloud