libavcodec/mpegvideo_enc.c:1464: error: Null Dereference
  pointer `desc` last assigned on line 1463 could be null and is dereferenced at line 1464, column 22.

libavcodec/mpegvideo_enc.c:1456:1: start of procedure frame_end()
1454. }
1455. 
1456. static void frame_end(MpegEncContext *s)
      ^
1457. {
1458.     int i;

libavcodec/mpegvideo_enc.c:1460:9: Taking true branch
1458.     int i;
1459. 
1460.     if (s->unrestricted_mv &&
              ^
1461.         s->current_picture.reference &&
1462.         !s->intra_only) {

libavcodec/mpegvideo_enc.c:1461:9: Taking true branch
1459. 
1460.     if (s->unrestricted_mv &&
1461.         s->current_picture.reference &&
              ^
1462.         !s->intra_only) {
1463.         const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->avctx->pix_fmt);

libavcodec/mpegvideo_enc.c:1462:10: Taking true branch
1460.     if (s->unrestricted_mv &&
1461.         s->current_picture.reference &&
1462.         !s->intra_only) {
               ^
1463.         const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->avctx->pix_fmt);
1464.         int hshift = desc->log2_chroma_w;

libavcodec/mpegvideo_enc.c:1463:9: 
1461.         s->current_picture.reference &&
1462.         !s->intra_only) {
1463.         const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->avctx->pix_fmt);
              ^
1464.         int hshift = desc->log2_chroma_w;
1465.         int vshift = desc->log2_chroma_h;

libavutil/pixdesc.c:1686:1: start of procedure av_pix_fmt_desc_get()
  1684. }
  1685. 
  1686. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
        ^
  1687. {
  1688.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)

libavutil/pixdesc.c:1688:9: Taking false branch
  1686. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1687. {
  1688.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                ^
  1689.         return NULL;
  1690.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1688:24: Taking true branch
  1686. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1687. {
  1688.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                               ^
  1689.         return NULL;
  1690.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1689:9: 
  1687. {
  1688.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
  1689.         return NULL;
                ^
  1690.     return &av_pix_fmt_descriptors[pix_fmt];
  1691. }

libavutil/pixdesc.c:1691:1: return from a call to av_pix_fmt_desc_get
  1689.         return NULL;
  1690.     return &av_pix_fmt_descriptors[pix_fmt];
  1691. }
        ^
  1692. 
  1693. const AVPixFmtDescriptor *av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)

libavcodec/mpegvideo_enc.c:1464:9: 
1462.         !s->intra_only) {
1463.         const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->avctx->pix_fmt);
1464.         int hshift = desc->log2_chroma_w;
              ^
1465.         int vshift = desc->log2_chroma_h;
1466.         s->mpvencdsp.draw_edges(s->current_picture.f->data[0], s->linesize,
