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

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

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

libavcodec/put_bits.h:60:1: Parameter `*buffer`
  58.  * @param buffer_size the size in bytes of \p buffer
  59.  */
  60. static inline void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size)
      ^
  61. {
  62.     if(buffer_size < 0) {

libavcodec/put_bits.h:68:5: Assignment
  66. 
  67.     s->size_in_bits= 8*buffer_size;
  68.     s->buf = buffer;
          ^
  69.     s->buf_end = s->buf + buffer_size;
  70. #ifdef ALT_BITSTREAM_WRITER

libavcodec/put_bits.h:75:5: Assignment
  73. //    memset(buffer, 0, buffer_size);
  74. #else
  75.     s->buf_ptr = s->buf;
          ^
  76.     s->bit_left=32;
  77.     s->bit_buf=0;

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

libavcodec/put_bits.h:139:1: Parameter `*s->buf_ptr`
  137. void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length);
  138. 
  139. static inline void put_bits(PutBitContext *s, int n, unsigned int value)
       ^
  140. #ifndef ALT_BITSTREAM_WRITER
  141. {

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

libavcodec/put_bits.h:139:1: Parameter `*s->buf_ptr`
  137. void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length);
  138. 
  139. static inline void put_bits(PutBitContext *s, int n, unsigned int value)
       ^
  140. #ifndef ALT_BITSTREAM_WRITER
  141. {

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

libavcodec/put_bits.h:139:1: Parameter `*s->buf_ptr`
  137. void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length);
  138. 
  139. static inline void put_bits(PutBitContext *s, int n, unsigned int value)
       ^
  140. #ifndef ALT_BITSTREAM_WRITER
  141. {

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

libavcodec/put_bits.h:139:1: Parameter `*s->buf_ptr`
  137. void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length);
  138. 
  139. static inline void put_bits(PutBitContext *s, int n, unsigned int value)
       ^
  140. #ifndef ALT_BITSTREAM_WRITER
  141. {

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

libavcodec/put_bits.h:139:1: Parameter `*s->buf_ptr`
  137. void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length);
  138. 
  139. static inline void put_bits(PutBitContext *s, int n, unsigned int value)
       ^
  140. #ifndef ALT_BITSTREAM_WRITER
  141. {

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

libavcodec/put_bits.h:139:1: Parameter `*s->buf_ptr`
  137. void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length);
  138. 
  139. static inline void put_bits(PutBitContext *s, int n, unsigned int value)
       ^
  140. #ifndef ALT_BITSTREAM_WRITER
  141. {

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

libavcodec/put_bits.h:139:1: <Length trace>
137. void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length);
138. 
139. static inline void put_bits(PutBitContext *s, int n, unsigned int value)
     ^
140. #ifndef ALT_BITSTREAM_WRITER
141. {

libavcodec/put_bits.h:139:1: Parameter `*s->buf_ptr`
  137. void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length);
  138. 
  139. static inline void put_bits(PutBitContext *s, int n, unsigned int value)
       ^
  140. #ifndef ALT_BITSTREAM_WRITER
  141. {

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