Commit 1dae9fac authored by diego's avatar diego

Change Dirac in MPEG-TS encapsulation to conform with spec changes.

patch by Anuradha Suraparaju, anuradha rd.bbc.co uk


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14753 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8950a575
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment