diff options
author | Mike Scheutzow <scheutzow@alcatel-lucent.com> | 2010-01-14 00:40:37 +0300 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-01-14 00:40:37 +0300 |
commit | c054f372e09121470530bc8d59a9678ef36c036d (patch) | |
tree | 74b1623a96369b1c4d39b586ccdc05ae429dd50f | |
parent | 4df3bbbc68c6a042d3092c00fd26b0077ac91610 (diff) |
update mpegts_write_pes documentation, patch by Mike Scheutzow, scheutzow at alcatel-lucent dot com
Originally committed as revision 21200 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mpegtsenc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index a28ccfe0ec..1dbb408423 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -586,7 +586,11 @@ static void write_pts(uint8_t *q, int fourbits, int64_t pts) *q++ = val; } -/* NOTE: pes_data contains all the PES packet */ +/* Add a pes header to the front of payload, and segment into an integer number of + * ts packets. The final ts packet is padded using an over-sized adaptation header + * to exactly fill the last ts packet. + * NOTE: 'payload' contains a complete PES payload. + */ static void mpegts_write_pes(AVFormatContext *s, AVStream *st, const uint8_t *payload, int payload_size, int64_t pts, int64_t dts) |