libavformat/mpegtsenc.c:860: error: Buffer Overrun L2
  Offset added: [5, 371] (⇐ [4, 187] + [1, 184]) Size: 188 by call to `mpegts_write_pes`.

libavformat/mpegtsenc.c:860:13: Call
858.         ts_st = st->priv_data;
859.         if (ts_st->payload_index > 0) {
860.             mpegts_write_pes(s, st, ts_st->payload, ts_st->payload_index,
                 ^
861.                              ts_st->payload_pts, ts_st->payload_dts);
862.         }

libavformat/mpegtsenc.c:606:1: Parameter `st->priv_data->pid`
  604.  * NOTE: 'payload' contains a complete PES payload.
  605.  */
  606. static void mpegts_write_pes(AVFormatContext *s, AVStream *st,
       ^
  607.                              const uint8_t *payload, int payload_size,
  608.                              int64_t pts, int64_t dts)

libavformat/mpegtsenc.c:860:13: Call
858.         ts_st = st->priv_data;
859.         if (ts_st->payload_index > 0) {
860.             mpegts_write_pes(s, st, ts_st->payload, ts_st->payload_index,
                 ^
861.                              ts_st->payload_pts, ts_st->payload_dts);
862.         }

libavformat/mpegtsenc.c:606:1: <Offset trace>
604.  * NOTE: 'payload' contains a complete PES payload.
605.  */
606. static void mpegts_write_pes(AVFormatContext *s, AVStream *st,
     ^
607.                              const uint8_t *payload, int payload_size,
608.                              int64_t pts, int64_t dts)

libavformat/mpegtsenc.c:606:1: Parameter `payload_size`
  604.  * NOTE: 'payload' contains a complete PES payload.
  605.  */
  606. static void mpegts_write_pes(AVFormatContext *s, AVStream *st,
       ^
  607.                              const uint8_t *payload, int payload_size,
  608.                              int64_t pts, int64_t dts)

libavformat/mpegtsenc.c:606:1: <Length trace>
604.  * NOTE: 'payload' contains a complete PES payload.
605.  */
606. static void mpegts_write_pes(AVFormatContext *s, AVStream *st,
     ^
607.                              const uint8_t *payload, int payload_size,
608.                              int64_t pts, int64_t dts)

libavformat/mpegtsenc.c:606:1: Array declaration
  604.  * NOTE: 'payload' contains a complete PES payload.
  605.  */
  606. static void mpegts_write_pes(AVFormatContext *s, AVStream *st,
       ^
  607.                              const uint8_t *payload, int payload_size,
  608.                              int64_t pts, int64_t dts)

libavformat/mpegtsenc.c:775:9: Array access: Offset added: [5, 371] (⇐ [4, 187] + [1, 184]) Size: 188 by call to `mpegts_write_pes` 
  773.             }
  774.         }
  775.         memcpy(buf + TS_PACKET_SIZE - len, payload, len);
               ^
  776.         payload += len;
  777.         payload_size -= len;
