comparison 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
comparison
equal deleted inserted replaced
5305:026cc515aad8 5306:95a0faec0218
739 buf = data; 739 buf = data;
740 size = pkt->size+6; 740 size = pkt->size+6;
741 } 741 }
742 } 742 }
743 743
744 if (st->codec->codec_type == CODEC_TYPE_SUBTITLE || 744 if (st->codec->codec_type != CODEC_TYPE_AUDIO) {
745 st->codec->codec_type == CODEC_TYPE_VIDEO) {
746 // for video and subtitle, write a single pes packet 745 // for video and subtitle, write a single pes packet
747 mpegts_write_pes(s, st, buf, size, pts, dts); 746 mpegts_write_pes(s, st, buf, size, pts, dts);
748 av_free(data); 747 av_free(data);
749 return 0; 748 return 0;
750 } 749 }