libavcodec/g723_1enc.c:250: error: Buffer Overrun L3
  Offset: [-511, 511] Size: 513.

libavcodec/g723_1enc.c:246:10: <Offset trace>
244.     prev_val = av_clipl_int32(temp << 1);
245.     count    = 0;
246.     for (i = 1; i < COS_TBL_SIZE / 2; i++) {
              ^
247.         /* Evaluate */
248.         temp = 0;

libavcodec/g723_1enc.c:246:10: Assignment
244.     prev_val = av_clipl_int32(temp << 1);
245.     count    = 0;
246.     for (i = 1; i < COS_TBL_SIZE / 2; i++) {
              ^
247.         /* Evaluate */
248.         temp = 0;

libavcodec/g723_1.h:229:1: <Length trace>
227. 
228. /* Cosine table scaled by 2^14 */
229. static const int16_t cos_tab[COS_TBL_SIZE + 1] = {
     ^
230.     16384,  16383,  16379,  16373,  16364,  16353,  16340,  16324,
231.     16305,  16284,  16261,  16235,  16207,  16176,  16143,  16107,

libavcodec/g723_1.h:229:1: Array declaration
227. 
228. /* Cosine table scaled by 2^14 */
229. static const int16_t cos_tab[COS_TBL_SIZE + 1] = {
     ^
230.     16384,  16383,  16379,  16373,  16364,  16353,  16340,  16324,
231.     16305,  16284,  16261,  16235,  16207,  16176,  16143,  16107,

libavcodec/g723_1enc.c:250:48: Array access: Offset: [-511, 511] Size: 513
248.         temp = 0;
249.         for (j = 0; j <= LPC_ORDER / 2; j++)
250.             temp += f[LPC_ORDER - 2 * j + p] * cos_tab[i * j % COS_TBL_SIZE];
                                                    ^
251.         cur_val = av_clipl_int32(temp << 1);
252. 
