libswscale/swscale_unscaled.c:606: error: Null Dereference
  pointer `desc_dst` last assigned on line 599 could be null and is dereferenced at line 606, column 39.

libswscale/swscale_unscaled.c:591:1: start of procedure findRgbConvFn()
589. /* {RGB,BGR}{15,16,24,32,32_1} -> {RGB,BGR}{15,16,24,32} */
590. typedef void (* rgbConvFn) (const uint8_t *, uint8_t *, int);
591. static rgbConvFn findRgbConvFn(SwsContext *c)
     ^
592. {
593.     const enum AVPixelFormat srcFormat = c->srcFormat;

libswscale/swscale_unscaled.c:593:5: 
591. static rgbConvFn findRgbConvFn(SwsContext *c)
592. {
593.     const enum AVPixelFormat srcFormat = c->srcFormat;
         ^
594.     const enum AVPixelFormat dstFormat = c->dstFormat;
595.     const int srcId = c->srcFormatBpp;

libswscale/swscale_unscaled.c:594:5: 
592. {
593.     const enum AVPixelFormat srcFormat = c->srcFormat;
594.     const enum AVPixelFormat dstFormat = c->dstFormat;
         ^
595.     const int srcId = c->srcFormatBpp;
596.     const int dstId = c->dstFormatBpp;

libswscale/swscale_unscaled.c:595:5: 
593.     const enum AVPixelFormat srcFormat = c->srcFormat;
594.     const enum AVPixelFormat dstFormat = c->dstFormat;
595.     const int srcId = c->srcFormatBpp;
         ^
596.     const int dstId = c->dstFormatBpp;
597.     rgbConvFn conv = NULL;

libswscale/swscale_unscaled.c:596:5: 
594.     const enum AVPixelFormat dstFormat = c->dstFormat;
595.     const int srcId = c->srcFormatBpp;
596.     const int dstId = c->dstFormatBpp;
         ^
597.     rgbConvFn conv = NULL;
598.     const AVPixFmtDescriptor *desc_src = av_pix_fmt_desc_get(srcFormat);

libswscale/swscale_unscaled.c:597:5: 
595.     const int srcId = c->srcFormatBpp;
596.     const int dstId = c->dstFormatBpp;
597.     rgbConvFn conv = NULL;
         ^
598.     const AVPixFmtDescriptor *desc_src = av_pix_fmt_desc_get(srcFormat);
599.     const AVPixFmtDescriptor *desc_dst = av_pix_fmt_desc_get(dstFormat);

libswscale/swscale_unscaled.c:598:5: 
596.     const int dstId = c->dstFormatBpp;
597.     rgbConvFn conv = NULL;
598.     const AVPixFmtDescriptor *desc_src = av_pix_fmt_desc_get(srcFormat);
         ^
599.     const AVPixFmtDescriptor *desc_dst = av_pix_fmt_desc_get(dstFormat);
600. 

libavutil/pixdesc.c:1665:1: start of procedure av_pix_fmt_desc_get()
  1663. }
  1664. 
  1665. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
        ^
  1666. {
  1667.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)

libavutil/pixdesc.c:1667:9: Taking false branch
  1665. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1666. {
  1667.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                ^
  1668.         return NULL;
  1669.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1667:24: Taking false branch
  1665. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1666. {
  1667.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                               ^
  1668.         return NULL;
  1669.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1669:5: 
  1667.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
  1668.         return NULL;
  1669.     return &av_pix_fmt_descriptors[pix_fmt];
            ^
  1670. }
  1671. 

libavutil/pixdesc.c:1670:1: return from a call to av_pix_fmt_desc_get
  1668.         return NULL;
  1669.     return &av_pix_fmt_descriptors[pix_fmt];
  1670. }
        ^
  1671. 
  1672. const AVPixFmtDescriptor *av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)

libswscale/swscale_unscaled.c:599:5: 
597.     rgbConvFn conv = NULL;
598.     const AVPixFmtDescriptor *desc_src = av_pix_fmt_desc_get(srcFormat);
599.     const AVPixFmtDescriptor *desc_dst = av_pix_fmt_desc_get(dstFormat);
         ^
600. 
601. #define IS_NOT_NE(bpp, desc) \

libavutil/pixdesc.c:1665:1: start of procedure av_pix_fmt_desc_get()
  1663. }
  1664. 
  1665. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
        ^
  1666. {
  1667.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)

libavutil/pixdesc.c:1667:9: Taking false branch
  1665. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1666. {
  1667.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                ^
  1668.         return NULL;
  1669.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1667:24: Taking true branch
  1665. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1666. {
  1667.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                               ^
  1668.         return NULL;
  1669.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1668:9: 
  1666. {
  1667.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
  1668.         return NULL;
                ^
  1669.     return &av_pix_fmt_descriptors[pix_fmt];
  1670. }

libavutil/pixdesc.c:1670:1: return from a call to av_pix_fmt_desc_get
  1668.         return NULL;
  1669.     return &av_pix_fmt_descriptors[pix_fmt];
  1670. }
        ^
  1671. 
  1672. const AVPixFmtDescriptor *av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)

libswscale/swscale_unscaled.c:606:9: Taking false branch
604. 
605.     /* if this is non-native rgb444/555/565, don't handle it here. */
606.     if (IS_NOT_NE(srcId, desc_src) || IS_NOT_NE(dstId, desc_dst))
             ^
607.         return NULL;
608. 

libswscale/swscale_unscaled.c:606:39: Taking true branch
604. 
605.     /* if this is non-native rgb444/555/565, don't handle it here. */
606.     if (IS_NOT_NE(srcId, desc_src) || IS_NOT_NE(dstId, desc_dst))
                                           ^
607.         return NULL;
608. 
