Mercurial > libavformat.hg
diff mpegtsenc.c @ 5306:95a0faec0218 libavformat
mux all stream types except audio as one pes packet per avpacket, issue #1374
| author | bcoudurier |
|---|---|
| date | Sun, 18 Oct 2009 21:41:03 +0000 |
| parents | 583eb737b1c4 |
| children | 7c8ef3adb42e |
line wrap: on
line diff
--- a/mpegtsenc.c Sun Oct 18 20:25:48 2009 +0000 +++ b/mpegtsenc.c Sun Oct 18 21:41:03 2009 +0000 @@ -741,8 +741,7 @@ } } - 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);
