+/** EStoPES, encapsulate an elementary stream block into PES packet(s)
+ * each with a maximal payload size of @i_max_pes_size@.
+ *
+ * In some circumstances, unbounded PES packets are allowed:
+ * - Transport streams only (NOT programme streams)
+ * - Only some types of elementary streams (eg MPEG2 video)
+ * It is the responsibility of the caller to enforce these constraints.
+ *
+ * EStoPES will only produce an unbounded PES packet if:
+ * - ES is VIDEO_ES
+ * - i_max_pes_size > PES_PAYLOAD_SIZE_MAX
+ * - length of p_es > PES_PAYLOAD_SIZE_MAX
+ * If the last condition is not met, a single PES packet is produced
+ * which is not unbounded in length.
+ *
+ * \param i_header_size length of padding data to insert into PES packet
+ * header in bytes.
+ * \param i_max_pes_size maximum length of each pes packet payload.
+ * if zero, uses default maximum.
+ * To allow unbounded PES packets in transport stream
+ * VIDEO_ES, set to INT_MAX.
+ */
+int EStoPES ( sout_instance_t *p_sout, block_t **pp_pes, block_t *p_es,
+ es_format_t *p_fmt, int i_stream_id,
+ int b_mpeg2, int b_data_alignment, int i_header_size,
+ int i_max_pes_size )