changeset 5537:8b4ac40f9525 libavformat

update mpegts_write_pes documentation, patch by Mike Scheutzow, scheutzow at alcatel-lucent dot com
author bcoudurier
date Wed, 13 Jan 2010 21:40:37 +0000
parents c13224897684
children 3ad37f4daa76
files mpegtsenc.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegtsenc.c	Wed Jan 13 20:44:56 2010 +0000
+++ b/mpegtsenc.c	Wed Jan 13 21:40:37 2010 +0000
@@ -586,7 +586,11 @@
     *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)