libavcodec/imgconvert.c:60: error: Null Dereference
  pointer `src_desc` last assigned on line 58 could be null and is dereferenced at line 60, column 34.

libavcodec/imgconvert.c:54:1: start of procedure avcodec_get_pix_fmt_loss()
52. }
53. 
54. int avcodec_get_pix_fmt_loss(enum AVPixelFormat dst_pix_fmt,
    ^
55.                              enum AVPixelFormat src_pix_fmt,
56.                              int has_alpha)

libavcodec/imgconvert.c:58:5: 
56.                              int has_alpha)
57. {
58.     const AVPixFmtDescriptor *src_desc = av_pix_fmt_desc_get(src_pix_fmt);
        ^
59.     const AVPixFmtDescriptor *dst_desc = av_pix_fmt_desc_get(dst_pix_fmt);
60.     int loss, i, nb_components = FFMIN(src_desc->nb_components,

libavutil/pixdesc.c:1574:1: start of procedure av_pix_fmt_desc_get()
  1572. }
  1573. 
  1574. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
        ^
  1575. {
  1576.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)

libavutil/pixdesc.c:1576:9: Taking false branch
  1574. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1575. {
  1576.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                ^
  1577.         return NULL;
  1578.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1576:24: Taking true branch
  1574. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1575. {
  1576.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                               ^
  1577.         return NULL;
  1578.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1577:9: 
  1575. {
  1576.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
  1577.         return NULL;
                ^
  1578.     return &av_pix_fmt_descriptors[pix_fmt];
  1579. }

libavutil/pixdesc.c:1579:1: return from a call to av_pix_fmt_desc_get
  1577.         return NULL;
  1578.     return &av_pix_fmt_descriptors[pix_fmt];
  1579. }
        ^
  1580. 
  1581. const AVPixFmtDescriptor *av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)

libavcodec/imgconvert.c:59:5: 
57. {
58.     const AVPixFmtDescriptor *src_desc = av_pix_fmt_desc_get(src_pix_fmt);
59.     const AVPixFmtDescriptor *dst_desc = av_pix_fmt_desc_get(dst_pix_fmt);
        ^
60.     int loss, i, nb_components = FFMIN(src_desc->nb_components,
61.                                        dst_desc->nb_components);

libavutil/pixdesc.c:1574:1: start of procedure av_pix_fmt_desc_get()
  1572. }
  1573. 
  1574. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
        ^
  1575. {
  1576.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)

libavutil/pixdesc.c:1576:9: Taking false branch
  1574. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1575. {
  1576.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                ^
  1577.         return NULL;
  1578.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1576:24: Taking true branch
  1574. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1575. {
  1576.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                               ^
  1577.         return NULL;
  1578.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1577:9: 
  1575. {
  1576.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
  1577.         return NULL;
                ^
  1578.     return &av_pix_fmt_descriptors[pix_fmt];
  1579. }

libavutil/pixdesc.c:1579:1: return from a call to av_pix_fmt_desc_get
  1577.         return NULL;
  1578.     return &av_pix_fmt_descriptors[pix_fmt];
  1579. }
        ^
  1580. 
  1581. const AVPixFmtDescriptor *av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)

libavcodec/imgconvert.c:60:34: 
58.     const AVPixFmtDescriptor *src_desc = av_pix_fmt_desc_get(src_pix_fmt);
59.     const AVPixFmtDescriptor *dst_desc = av_pix_fmt_desc_get(dst_pix_fmt);
60.     int loss, i, nb_components = FFMIN(src_desc->nb_components,
                                     ^
61.                                        dst_desc->nb_components);
62. 
