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

libavcodec/imgconvert.c:641:5: Assignment
639.             list[j++] = i;
640.     }
641.     list[j] = AV_PIX_FMT_NONE;
         ^
642. 
643.     return avcodec_find_best_pix_fmt2(list, src_pix_fmt, has_alpha, loss_ptr);

libavcodec/imgconvert.c:643:12: Call
641.     list[j] = AV_PIX_FMT_NONE;
642. 
643.     return avcodec_find_best_pix_fmt2(list, src_pix_fmt, has_alpha, loss_ptr);
                ^
644. }
645. #endif /* FF_API_FIND_BEST_PIX_FMT */

libavcodec/imgconvert.c:647:1: Parameter `*pix_fmt_list`
  645. #endif /* FF_API_FIND_BEST_PIX_FMT */
  646. 
  647. enum AVPixelFormat avcodec_find_best_pix_fmt2(enum AVPixelFormat *pix_fmt_list,
       ^
  648.                                             enum AVPixelFormat src_pix_fmt,
  649.                                             int has_alpha, int *loss_ptr)

libavcodec/imgconvert.c:667:23: Call
  665.     for(;;) {
  666.         loss_mask = loss_mask_order[i++];
  667.         dst_pix_fmt = avcodec_find_best_pix_fmt1(pix_fmt_list, src_pix_fmt,
                             ^
  668.                                                  has_alpha, loss_mask);
  669.         if (dst_pix_fmt >= 0)

libavcodec/imgconvert.c:595:1: Parameter `*pix_fmt_list`
    593. }
    594. 
    595. static enum AVPixelFormat avcodec_find_best_pix_fmt1(enum AVPixelFormat *pix_fmt_list,
         ^
    596.                                       enum AVPixelFormat src_pix_fmt,
    597.                                       int has_alpha,

libavcodec/imgconvert.c:608:9: Assignment
    606.     i = 0;
    607.     while (pix_fmt_list[i] != AV_PIX_FMT_NONE) {
    608.         enum AVPixelFormat pix_fmt = pix_fmt_list[i];
                 ^
    609. 
    610.         if (i > AV_PIX_FMT_NB) {

libavcodec/imgconvert.c:616:16: Call
    614.         }
    615. 
    616.         loss = avcodec_get_pix_fmt_loss(pix_fmt, src_pix_fmt, has_alpha) & loss_mask;
                        ^
    617.         if (loss == 0) {
    618.             dist = avg_bits_per_pixel(pix_fmt);

libavcodec/imgconvert.c:484:1: <Offset trace>
482. }
483. 
484. int avcodec_get_pix_fmt_loss(enum AVPixelFormat dst_pix_fmt, enum AVPixelFormat src_pix_fmt,
     ^
485.                              int has_alpha)
486. {

libavcodec/imgconvert.c:484:1: Parameter `dst_pix_fmt`
      482. }
      483. 
      484. int avcodec_get_pix_fmt_loss(enum AVPixelFormat dst_pix_fmt, enum AVPixelFormat src_pix_fmt,
           ^
      485.                              int has_alpha)
      486. {

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:496:5: Array access: Offset: [-1, 63] Size: 91 by call to `avcodec_find_best_pix_fmt2` 
      494.     /* compute loss */
      495.     loss = 0;
      496.     pf = &pix_fmt_info[dst_pix_fmt];
               ^
      497.     if (pf->depth < ps->depth ||
      498.         ((dst_pix_fmt == AV_PIX_FMT_RGB555BE || dst_pix_fmt == AV_PIX_FMT_RGB555LE ||
