libavcodec/imgconvert.c:639: error: Buffer Overrun L3
  Offset: [-1, 63] Size: 89 by call to `avcodec_find_best_pix_fmt2`.

libavcodec/imgconvert.c:637:5: Assignment
635.             list[j++] = i;
636.     }
637.     list[j] = AV_PIX_FMT_NONE;
         ^
638. 
639.     return avcodec_find_best_pix_fmt2(list, src_pix_fmt, has_alpha, loss_ptr);

libavcodec/imgconvert.c:639:12: Call
637.     list[j] = AV_PIX_FMT_NONE;
638. 
639.     return avcodec_find_best_pix_fmt2(list, src_pix_fmt, has_alpha, loss_ptr);
                ^
640. }
641. #endif /* FF_API_FIND_BEST_PIX_FMT */

libavcodec/imgconvert.c:643:1: Parameter `*pix_fmt_list`
  641. #endif /* FF_API_FIND_BEST_PIX_FMT */
  642. 
  643. enum AVPixelFormat avcodec_find_best_pix_fmt2(enum AVPixelFormat *pix_fmt_list,
       ^
  644.                                             enum AVPixelFormat src_pix_fmt,
  645.                                             int has_alpha, int *loss_ptr)

libavcodec/imgconvert.c:663:23: Call
  661.     for(;;) {
  662.         loss_mask = loss_mask_order[i++];
  663.         dst_pix_fmt = avcodec_find_best_pix_fmt1(pix_fmt_list, src_pix_fmt,
                             ^
  664.                                                  has_alpha, loss_mask);
  665.         if (dst_pix_fmt >= 0)

libavcodec/imgconvert.c:591:1: Parameter `*pix_fmt_list`
    589. }
    590. 
    591. static enum AVPixelFormat avcodec_find_best_pix_fmt1(enum AVPixelFormat *pix_fmt_list,
         ^
    592.                                       enum AVPixelFormat src_pix_fmt,
    593.                                       int has_alpha,

libavcodec/imgconvert.c:604:9: Assignment
    602.     i = 0;
    603.     while (pix_fmt_list[i] != AV_PIX_FMT_NONE) {
    604.         enum AVPixelFormat pix_fmt = pix_fmt_list[i];
                 ^
    605. 
    606.         if (i > AV_PIX_FMT_NB) {

libavcodec/imgconvert.c:612:16: Call
    610.         }
    611. 
    612.         loss = avcodec_get_pix_fmt_loss(pix_fmt, src_pix_fmt, has_alpha) & loss_mask;
                        ^
    613.         if (loss == 0) {
    614.             dist = avg_bits_per_pixel(pix_fmt);

libavcodec/imgconvert.c:480:1: <Offset trace>
478. }
479. 
480. int avcodec_get_pix_fmt_loss(enum AVPixelFormat dst_pix_fmt, enum AVPixelFormat src_pix_fmt,
     ^
481.                              int has_alpha)
482. {

libavcodec/imgconvert.c:480:1: Parameter `dst_pix_fmt`
      478. }
      479. 
      480. int avcodec_get_pix_fmt_loss(enum AVPixelFormat dst_pix_fmt, enum AVPixelFormat src_pix_fmt,
           ^
      481.                              int has_alpha)
      482. {

libavcodec/imgconvert.c:71:1: <Length trace>
69. 
70. /* this table gives more information about formats */
71. static const PixFmtInfo pix_fmt_info[AV_PIX_FMT_NB] = {
    ^
72.     /* YUV formats */
73.     [AV_PIX_FMT_YUV420P] = {

libavcodec/imgconvert.c:71:1: Array declaration
      69. 
      70. /* this table gives more information about formats */
      71. static const PixFmtInfo pix_fmt_info[AV_PIX_FMT_NB] = {
          ^
      72.     /* YUV formats */
      73.     [AV_PIX_FMT_YUV420P] = {

libavcodec/imgconvert.c:492:5: Array access: Offset: [-1, 63] Size: 89 by call to `avcodec_find_best_pix_fmt2` 
      490.     /* compute loss */
      491.     loss = 0;
      492.     pf = &pix_fmt_info[dst_pix_fmt];
               ^
      493.     if (pf->depth < ps->depth ||
      494.         ((dst_pix_fmt == AV_PIX_FMT_RGB555BE || dst_pix_fmt == AV_PIX_FMT_RGB555LE ||
