libavformat/mpegtsenc.c:194: error: Buffer Overrun L2
  Offset added: [6, 372] (⇐ [5, 189] + [1, 183]) Size: 188 by call to `mpegts_write_section1`.

libavformat/mpegtsenc.c:181:1: Array declaration
179. } MpegTSWriteStream;
180. 
181. static void mpegts_write_pat(AVFormatContext *s)
     ^
182. {
183.     MpegTSWrite *ts = s->priv_data;

libavformat/mpegtsenc.c:194:5: Call
192.         put16(&q, 0xe000 | service->pmt.pid);
193.     }
194.     mpegts_write_section1(&ts->pat, PAT_TID, ts->tsid, 0, 0, 0,
         ^
195.                           data, q - data);
196. }

libavformat/mpegtsenc.c:124:1: Parameter `len`
  122. }
  123. 
  124. static int mpegts_write_section1(MpegTSSection *s, int tid, int id,
       ^
  125.                           int version, int sec_num, int last_sec_num,
  126.                           uint8_t *buf, int len)

libavformat/mpegtsenc.c:131:5: Assignment
  129.     unsigned int tot_len;
  130. 
  131.     tot_len = 3 + 5 + len + 4;
           ^
  132.     /* check if not too big */
  133.     if (tot_len > 1024)

libavformat/mpegtsenc.c:145:5: Call
  143.     memcpy(q, buf, len);
  144. 
  145.     mpegts_write_section(s, section, tot_len);
           ^
  146.     return 0;
  147. }

libavformat/mpegtsenc.c:66:1: <Offset trace>
64. 
65. /* NOTE: 4 bytes must be left at the end for the crc32 */
66. static void mpegts_write_section(MpegTSSection *s, uint8_t *buf, int len)
    ^
67. {
68.     MpegTSWrite *ts = ((AVFormatContext*)s->opaque)->priv_data;

libavformat/mpegtsenc.c:66:1: Array declaration
    64. 
    65. /* NOTE: 4 bytes must be left at the end for the crc32 */
    66. static void mpegts_write_section(MpegTSSection *s, uint8_t *buf, int len)
        ^
    67. {
    68.     MpegTSWrite *ts = ((AVFormatContext*)s->opaque)->priv_data;

libavformat/mpegtsenc.c:102:9: Assignment
    100.         q += len1;
    101.         /* add known padding data */
    102.         left = TS_PACKET_SIZE - (q - packet);
                 ^
    103.         if (left > 0)
    104.             memset(q, 0xff, left);

libavformat/mpegtsenc.c:66:1: <Length trace>
64. 
65. /* NOTE: 4 bytes must be left at the end for the crc32 */
66. static void mpegts_write_section(MpegTSSection *s, uint8_t *buf, int len)
    ^
67. {
68.     MpegTSWrite *ts = ((AVFormatContext*)s->opaque)->priv_data;

libavformat/mpegtsenc.c:66:1: Parameter `len`
    64. 
    65. /* NOTE: 4 bytes must be left at the end for the crc32 */
    66. static void mpegts_write_section(MpegTSSection *s, uint8_t *buf, int len)
        ^
    67. {
    68.     MpegTSWrite *ts = ((AVFormatContext*)s->opaque)->priv_data;

libavformat/mpegtsenc.c:100:9: Assignment
     98.             len1 = len;
     99.         memcpy(q, buf_ptr, len1);
    100.         q += len1;
                 ^
    101.         /* add known padding data */
    102.         left = TS_PACKET_SIZE - (q - packet);

libavformat/mpegtsenc.c:104:13: Array access: Offset added: [6, 372] (⇐ [5, 189] + [1, 183]) Size: 188 by call to `mpegts_write_section1` 
    102.         left = TS_PACKET_SIZE - (q - packet);
    103.         if (left > 0)
    104.             memset(q, 0xff, left);
                     ^
    105. 
    106.         s->write_packet(s, packet);
