[FFmpeg-cvslog] r14753 - trunk/libavformat/mpegtsenc.c
diego
subversion
Thu Aug 14 13:17:23 CEST 2008
Author: diego
Date: Thu Aug 14 13:17:23 2008
New Revision: 14753
Log:
Change Dirac in MPEG-TS encapsulation to conform with spec changes.
patch by Anuradha Suraparaju, anuradha rd.bbc.co uk
Modified:
trunk/libavformat/mpegtsenc.c
Modified: trunk/libavformat/mpegtsenc.c
==============================================================================
--- trunk/libavformat/mpegtsenc.c (original)
+++ trunk/libavformat/mpegtsenc.c Thu Aug 14 13:17:23 2008
@@ -668,6 +668,11 @@ static int mpegts_write_packet(AVFormatC
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;
More information about the ffmpeg-cvslog
mailing list