Commit eb7bebf7 authored by bcoudurier's avatar bcoudurier

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20292 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 249f6c1c
...@@ -741,8 +741,7 @@ static int mpegts_write_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -741,8 +741,7 @@ static int mpegts_write_packet(AVFormatContext *s, AVPacket *pkt)
} }
} }
if (st->codec->codec_type == CODEC_TYPE_SUBTITLE || if (st->codec->codec_type != CODEC_TYPE_AUDIO) {
st->codec->codec_type == CODEC_TYPE_VIDEO) {
// for video and subtitle, write a single pes packet // for video and subtitle, write a single pes packet
mpegts_write_pes(s, st, buf, size, pts, dts); mpegts_write_pes(s, st, buf, size, pts, dts);
av_free(data); av_free(data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment