libavformat/movenc.c:260: error: Buffer Overrun L2
  Offset: [2, 26] (⇐ [0, 24] + 2) Size: 3 by call to `put_bits`.

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

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

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

libavcodec/bitstream.h:99:5: Assignment
   97. 
   98.     s->size_in_bits= 8*buffer_size;
   99.     s->buf = buffer;
           ^
  100.     s->buf_end = s->buf + buffer_size;
  101. #ifdef ALT_BITSTREAM_WRITER

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

libavcodec/bitstream.h:221:13: Array access: Offset: [2, 26] (⇐ [0, 24] + 2) Size: 3 by call to `put_bits` 
  219. #if !HAVE_FAST_UNALIGNED
  220.         if (3 & (intptr_t) s->buf_ptr) {
  221.             AV_WB32(s->buf_ptr, bit_buf);
                   ^
  222.         } else
  223. #endif
