changeset 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 026cc515aad8
children 99be640a6672
files mpegtsenc.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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);