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
This commit is contained in:
Baptiste Coudurier 2009-10-18 21:41:03 +00:00
parent 10a693b568
commit 807e4e81a8
1 changed files with 1 additions and 2 deletions

View File

@ -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);