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

libavformat/mpegtsenc.c:190:1: Array declaration
188. }
189. 
190. static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
     ^
191. {
192.     //    MpegTSWrite *ts = s->priv_data;

libavformat/mpegtsenc.c:275:5: Call
273.         desc_length_ptr[1] = val;
274.     }
275.     mpegts_write_section1(&service->pmt, PMT_TID, service->sid, 0, 0, 0,
         ^
276.                           data, q - data);
277. }

libavformat/mpegtsenc.c:93:1: Parameter `len`
  91. }
  92. 
  93. static int mpegts_write_section1(MpegTSSection *s, int tid, int id,
      ^
  94.                           int version, int sec_num, int last_sec_num,
  95.                           uint8_t *buf, int len)

libavformat/mpegtsenc.c:100:5: Assignment
   98.     unsigned int tot_len;
   99. 
  100.     tot_len = 3 + 5 + len + 4;
           ^
  101.     /* check if not too big */
  102.     if (tot_len > 1024)

libavformat/mpegtsenc.c:114:5: Call
  112.     memcpy(q, buf, len);
  113. 
  114.     mpegts_write_section(s, section, tot_len);
           ^
  115.     return 0;
  116. }

libavformat/mpegtsenc.c:38:1: <Offset trace>
36. 
37. /* NOTE: 4 bytes must be left at the end for the crc32 */
38. static void mpegts_write_section(MpegTSSection *s, uint8_t *buf, int len)
    ^
39. {
40.     unsigned int crc;

libavformat/mpegtsenc.c:38:1: Array declaration
    36. 
    37. /* NOTE: 4 bytes must be left at the end for the crc32 */
    38. static void mpegts_write_section(MpegTSSection *s, uint8_t *buf, int len)
        ^
    39. {
    40.     unsigned int crc;

libavformat/mpegtsenc.c:73:9: Assignment
    71.         q += len1;
    72.         /* add known padding data */
    73.         left = TS_PACKET_SIZE - (q - packet);
                ^
    74.         if (left > 0)
    75.             memset(q, 0xff, left);

libavformat/mpegtsenc.c:38:1: <Length trace>
36. 
37. /* NOTE: 4 bytes must be left at the end for the crc32 */
38. static void mpegts_write_section(MpegTSSection *s, uint8_t *buf, int len)
    ^
39. {
40.     unsigned int crc;

libavformat/mpegtsenc.c:38:1: Parameter `len`
    36. 
    37. /* NOTE: 4 bytes must be left at the end for the crc32 */
    38. static void mpegts_write_section(MpegTSSection *s, uint8_t *buf, int len)
        ^
    39. {
    40.     unsigned int crc;

libavformat/mpegtsenc.c:71:9: Assignment
    69.             len1 = len;
    70.         memcpy(q, buf_ptr, len1);
    71.         q += len1;
                ^
    72.         /* add known padding data */
    73.         left = TS_PACKET_SIZE - (q - packet);

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