diff options
author | Anuradha Suraparaju <anuradha@rd.bbc.co.uk> | 2008-08-14 11:17:23 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-08-14 11:17:23 +0000 |
commit | 67a38cee3724f8e83cfb767fccdc45a42bc3f840 (patch) | |
tree | cdadb98849c40e2205ac6285749c945eafb45941 | |
parent | c03d9d058bd645957c9694cc99fb9cfb88b72774 (diff) | |
download | ffmpeg-67a38cee3724f8e83cfb767fccdc45a42bc3f840.tar.gz |
Change Dirac in MPEG-TS encapsulation to conform with spec changes.
patch by Anuradha Suraparaju, anuradha rd.bbc.co uk
Originally committed as revision 14753 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mpegtsenc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 6a43ce4c32..fadbb0c591 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -668,6 +668,11 @@ static int mpegts_write_packet(AVFormatContext *s, AVPacket *pkt) return 0; } + if (st->codec->codec_id == CODEC_ID_DIRAC) { + /* for Dirac, a single PES packet must be generated */ + mpegts_write_pes(s, st, buf, size, pkt->pts, pkt->dts); + return 0; + } max_payload_size = DEFAULT_PES_PAYLOAD_SIZE; while (size > 0) { len = max_payload_size - ts_st->payload_index; |