libswscale/swscale_unscaled.c:569: error: Null Dereference
  pointer `desc_src` last assigned on line 561 could be null and is dereferenced at line 569, column 9.

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

libswscale/swscale_unscaled.c:556:5: 
554. static rgbConvFn findRgbConvFn(SwsContext *c)
555. {
556.     const enum AVPixelFormat srcFormat = c->srcFormat;
         ^
557.     const enum AVPixelFormat dstFormat = c->dstFormat;
558.     const int srcId = c->srcFormatBpp;

libswscale/swscale_unscaled.c:557:5: 
555. {
556.     const enum AVPixelFormat srcFormat = c->srcFormat;
557.     const enum AVPixelFormat dstFormat = c->dstFormat;
         ^
558.     const int srcId = c->srcFormatBpp;
559.     const int dstId = c->dstFormatBpp;

libswscale/swscale_unscaled.c:558:5: 
556.     const enum AVPixelFormat srcFormat = c->srcFormat;
557.     const enum AVPixelFormat dstFormat = c->dstFormat;
558.     const int srcId = c->srcFormatBpp;
         ^
559.     const int dstId = c->dstFormatBpp;
560.     rgbConvFn conv = NULL;

libswscale/swscale_unscaled.c:559:5: 
557.     const enum AVPixelFormat dstFormat = c->dstFormat;
558.     const int srcId = c->srcFormatBpp;
559.     const int dstId = c->dstFormatBpp;
         ^
560.     rgbConvFn conv = NULL;
561.     const AVPixFmtDescriptor *desc_src = av_pix_fmt_desc_get(srcFormat);

libswscale/swscale_unscaled.c:560:5: 
558.     const int srcId = c->srcFormatBpp;
559.     const int dstId = c->dstFormatBpp;
560.     rgbConvFn conv = NULL;
         ^
561.     const AVPixFmtDescriptor *desc_src = av_pix_fmt_desc_get(srcFormat);
562.     const AVPixFmtDescriptor *desc_dst = av_pix_fmt_desc_get(dstFormat);

libswscale/swscale_unscaled.c:561:5: 
559.     const int dstId = c->dstFormatBpp;
560.     rgbConvFn conv = NULL;
561.     const AVPixFmtDescriptor *desc_src = av_pix_fmt_desc_get(srcFormat);
         ^
562.     const AVPixFmtDescriptor *desc_dst = av_pix_fmt_desc_get(dstFormat);
563. 

libavutil/pixdesc.c:1440:1: start of procedure av_pix_fmt_desc_get()
  1438. }
  1439. 
  1440. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
        ^
  1441. {
  1442.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)

libavutil/pixdesc.c:1442:9: Taking false branch
  1440. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1441. {
  1442.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                ^
  1443.         return NULL;
  1444.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1442:24: Taking true branch
  1440. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1441. {
  1442.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                               ^
  1443.         return NULL;
  1444.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1443:9: 
  1441. {
  1442.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
  1443.         return NULL;
                ^
  1444.     return &av_pix_fmt_descriptors[pix_fmt];
  1445. }

libavutil/pixdesc.c:1445:1: return from a call to av_pix_fmt_desc_get
  1443.         return NULL;
  1444.     return &av_pix_fmt_descriptors[pix_fmt];
  1445. }
        ^
  1446. 
  1447. const AVPixFmtDescriptor *av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)

libswscale/swscale_unscaled.c:562:5: 
560.     rgbConvFn conv = NULL;
561.     const AVPixFmtDescriptor *desc_src = av_pix_fmt_desc_get(srcFormat);
562.     const AVPixFmtDescriptor *desc_dst = av_pix_fmt_desc_get(dstFormat);
         ^
563. 
564. #define IS_NOT_NE(bpp, desc) \

libavutil/pixdesc.c:1440:1: start of procedure av_pix_fmt_desc_get()
  1438. }
  1439. 
  1440. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
        ^
  1441. {
  1442.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)

libavutil/pixdesc.c:1442:9: Taking false branch
  1440. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1441. {
  1442.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                ^
  1443.         return NULL;
  1444.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1442:24: Taking false branch
  1440. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1441. {
  1442.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                               ^
  1443.         return NULL;
  1444.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1444:5: 
  1442.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
  1443.         return NULL;
  1444.     return &av_pix_fmt_descriptors[pix_fmt];
            ^
  1445. }
  1446. 

libavutil/pixdesc.c:1445:1: return from a call to av_pix_fmt_desc_get
  1443.         return NULL;
  1444.     return &av_pix_fmt_descriptors[pix_fmt];
  1445. }
        ^
  1446. 
  1447. const AVPixFmtDescriptor *av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)

libswscale/swscale_unscaled.c:569:9: Taking true branch
567. 
568.     /* if this is non-native rgb444/555/565, don't handle it here. */
569.     if (IS_NOT_NE(srcId, desc_src) || IS_NOT_NE(dstId, desc_dst))
             ^
570.         return NULL;
571. 
