libavformat/movenc.c:259: error: Buffer Overrun L1
  Offset: [3, 27] (⇐ [0, 24] + 3) Size: 3 by call to `put_bits`.

libavformat/movenc.c:223:1: Array declaration
221. }
222. 
223. static int mov_write_ac3_tag(ByteIOContext *pb, MOVTrack *track)
     ^
224. {
225.     GetBitContext gbc;

libavformat/movenc.c:252:5: Call
250.     lfeon = get_bits1(&gbc);
251. 
252.     init_put_bits(&pbc, buf, sizeof(buf));
         ^
253.     put_bits(&pbc, 2, fscod);
254.     put_bits(&pbc, 5, bsid);

libavcodec/bitstream.h:90:1: Parameter `*buffer`
  88. } PutBitContext;
  89. 
  90. static inline void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size)
      ^
  91. {
  92.     if(buffer_size < 0) {

libavcodec/bitstream.h:97:5: Assignment
  95.     }
  96. 
  97.     s->buf = buffer;
          ^
  98.     s->buf_end = s->buf + buffer_size;
  99. #ifdef ALT_BITSTREAM_WRITER

libavcodec/bitstream.h:104:5: Assignment
  102. //    memset(buffer, 0, buffer_size);
  103. #else
  104.     s->buf_ptr = s->buf;
           ^
  105.     s->bit_left=32;
  106.     s->bit_buf=0;

libavformat/movenc.c:253:5: Call
251. 
252.     init_put_bits(&pbc, buf, sizeof(buf));
253.     put_bits(&pbc, 2, fscod);
         ^
254.     put_bits(&pbc, 5, bsid);
255.     put_bits(&pbc, 3, bsmod);

libavcodec/bitstream.h:183:1: Parameter `*s->buf_ptr`
  181. 
  182. #ifndef ALT_BITSTREAM_WRITER
  183. static inline void put_bits(PutBitContext *s, int n, unsigned int value)
       ^
  184. {
  185.     unsigned int bit_buf;

libavformat/movenc.c:254:5: Call
252.     init_put_bits(&pbc, buf, sizeof(buf));
253.     put_bits(&pbc, 2, fscod);
254.     put_bits(&pbc, 5, bsid);
         ^
255.     put_bits(&pbc, 3, bsmod);
256.     put_bits(&pbc, 3, acmod);

libavcodec/bitstream.h:183:1: Parameter `*s->buf_ptr`
  181. 
  182. #ifndef ALT_BITSTREAM_WRITER
  183. static inline void put_bits(PutBitContext *s, int n, unsigned int value)
       ^
  184. {
  185.     unsigned int bit_buf;

libavformat/movenc.c:255:5: Call
253.     put_bits(&pbc, 2, fscod);
254.     put_bits(&pbc, 5, bsid);
255.     put_bits(&pbc, 3, bsmod);
         ^
256.     put_bits(&pbc, 3, acmod);
257.     put_bits(&pbc, 1, lfeon);

libavcodec/bitstream.h:183:1: Parameter `*s->buf_ptr`
  181. 
  182. #ifndef ALT_BITSTREAM_WRITER
  183. static inline void put_bits(PutBitContext *s, int n, unsigned int value)
       ^
  184. {
  185.     unsigned int bit_buf;

libavformat/movenc.c:256:5: Call
254.     put_bits(&pbc, 5, bsid);
255.     put_bits(&pbc, 3, bsmod);
256.     put_bits(&pbc, 3, acmod);
         ^
257.     put_bits(&pbc, 1, lfeon);
258.     put_bits(&pbc, 5, frmsizecod>>1); // bit_rate_code

libavcodec/bitstream.h:183:1: Parameter `*s->buf_ptr`
  181. 
  182. #ifndef ALT_BITSTREAM_WRITER
  183. static inline void put_bits(PutBitContext *s, int n, unsigned int value)
       ^
  184. {
  185.     unsigned int bit_buf;

libavformat/movenc.c:257:5: Call
255.     put_bits(&pbc, 3, bsmod);
256.     put_bits(&pbc, 3, acmod);
257.     put_bits(&pbc, 1, lfeon);
         ^
258.     put_bits(&pbc, 5, frmsizecod>>1); // bit_rate_code
259.     put_bits(&pbc, 5, 0); // reserved

libavcodec/bitstream.h:183:1: Parameter `*s->buf_ptr`
  181. 
  182. #ifndef ALT_BITSTREAM_WRITER
  183. static inline void put_bits(PutBitContext *s, int n, unsigned int value)
       ^
  184. {
  185.     unsigned int bit_buf;

libavformat/movenc.c:258:5: Call
256.     put_bits(&pbc, 3, acmod);
257.     put_bits(&pbc, 1, lfeon);
258.     put_bits(&pbc, 5, frmsizecod>>1); // bit_rate_code
         ^
259.     put_bits(&pbc, 5, 0); // reserved
260. 

libavcodec/bitstream.h:183:1: Parameter `*s->buf_ptr`
  181. 
  182. #ifndef ALT_BITSTREAM_WRITER
  183. static inline void put_bits(PutBitContext *s, int n, unsigned int value)
       ^
  184. {
  185.     unsigned int bit_buf;

libavformat/movenc.c:259:5: Call
257.     put_bits(&pbc, 1, lfeon);
258.     put_bits(&pbc, 5, frmsizecod>>1); // bit_rate_code
259.     put_bits(&pbc, 5, 0); // reserved
         ^
260. 
261.     flush_put_bits(&pbc);

libavcodec/bitstream.h:183:1: <Length trace>
181. 
182. #ifndef ALT_BITSTREAM_WRITER
183. static inline void put_bits(PutBitContext *s, int n, unsigned int value)
     ^
184. {
185.     unsigned int bit_buf;

libavcodec/bitstream.h:183:1: Parameter `*s->buf_ptr`
  181. 
  182. #ifndef ALT_BITSTREAM_WRITER
  183. static inline void put_bits(PutBitContext *s, int n, unsigned int value)
       ^
  184. {
  185.     unsigned int bit_buf;

libavcodec/bitstream.h:225:13: Array access: Offset: [3, 27] (⇐ [0, 24] + 3) Size: 3 by call to `put_bits` 
  223.             s->buf_ptr[1] = bit_buf >> 16;
  224.             s->buf_ptr[2] = bit_buf >>  8;
  225.             s->buf_ptr[3] = bit_buf      ;
                   ^
  226.         } else
  227. #endif
