[SCM] libav/experimental: Change Dirac in MPEG-TS encapsulation to conform with spec changes. patch by Anuradha Suraparaju, anuradha rd.bbc.co uk

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:27:33 UTC 2013


The following commit has been merged in the experimental branch:
commit 67a38cee3724f8e83cfb767fccdc45a42bc3f840
Author: Anuradha Suraparaju <anuradha at rd.bbc.co.uk>
Date:   Thu Aug 14 11:17:23 2008 +0000

    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

diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index 6a43ce4..fadbb0c 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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list