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

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

libswscale/swscale_unscaled.c:482:5: 
480. static rgbConvFn findRgbConvFn(SwsContext *c)
481. {
482.     const enum AVPixelFormat srcFormat = c->srcFormat;
         ^
483.     const enum AVPixelFormat dstFormat = c->dstFormat;
484.     const int srcId = c->srcFormatBpp;

libswscale/swscale_unscaled.c:483:5: 
481. {
482.     const enum AVPixelFormat srcFormat = c->srcFormat;
483.     const enum AVPixelFormat dstFormat = c->dstFormat;
         ^
484.     const int srcId = c->srcFormatBpp;
485.     const int dstId = c->dstFormatBpp;

libswscale/swscale_unscaled.c:484:5: 
482.     const enum AVPixelFormat srcFormat = c->srcFormat;
483.     const enum AVPixelFormat dstFormat = c->dstFormat;
484.     const int srcId = c->srcFormatBpp;
         ^
485.     const int dstId = c->dstFormatBpp;
486.     rgbConvFn conv = NULL;

libswscale/swscale_unscaled.c:485:5: 
483.     const enum AVPixelFormat dstFormat = c->dstFormat;
484.     const int srcId = c->srcFormatBpp;
485.     const int dstId = c->dstFormatBpp;
         ^
486.     rgbConvFn conv = NULL;
487.     const AVPixFmtDescriptor *desc_src = av_pix_fmt_desc_get(srcFormat);

libswscale/swscale_unscaled.c:486:5: 
484.     const int srcId = c->srcFormatBpp;
485.     const int dstId = c->dstFormatBpp;
486.     rgbConvFn conv = NULL;
         ^
487.     const AVPixFmtDescriptor *desc_src = av_pix_fmt_desc_get(srcFormat);
488.     const AVPixFmtDescriptor *desc_dst = av_pix_fmt_desc_get(dstFormat);

libswscale/swscale_unscaled.c:487:5: 
485.     const int dstId = c->dstFormatBpp;
486.     rgbConvFn conv = NULL;
487.     const AVPixFmtDescriptor *desc_src = av_pix_fmt_desc_get(srcFormat);
         ^
488.     const AVPixFmtDescriptor *desc_dst = av_pix_fmt_desc_get(dstFormat);
489. 

libavutil/pixdesc.c:1433:1: start of procedure av_pix_fmt_desc_get()
  1431. }
  1432. 
  1433. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
        ^
  1434. {
  1435.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)

libavutil/pixdesc.c:1435:9: Taking false branch
  1433. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1434. {
  1435.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                ^
  1436.         return NULL;
  1437.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1435:24: Taking true branch
  1433. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1434. {
  1435.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                               ^
  1436.         return NULL;
  1437.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1436:9: 
  1434. {
  1435.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
  1436.         return NULL;
                ^
  1437.     return &av_pix_fmt_descriptors[pix_fmt];
  1438. }

libavutil/pixdesc.c:1438:1: return from a call to av_pix_fmt_desc_get
  1436.         return NULL;
  1437.     return &av_pix_fmt_descriptors[pix_fmt];
  1438. }
        ^
  1439. 
  1440. const AVPixFmtDescriptor *av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)

libswscale/swscale_unscaled.c:488:5: 
486.     rgbConvFn conv = NULL;
487.     const AVPixFmtDescriptor *desc_src = av_pix_fmt_desc_get(srcFormat);
488.     const AVPixFmtDescriptor *desc_dst = av_pix_fmt_desc_get(dstFormat);
         ^
489. 
490. #define IS_NOT_NE(bpp, desc) \

libavutil/pixdesc.c:1433:1: start of procedure av_pix_fmt_desc_get()
  1431. }
  1432. 
  1433. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
        ^
  1434. {
  1435.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)

libavutil/pixdesc.c:1435:9: Taking false branch
  1433. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1434. {
  1435.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                ^
  1436.         return NULL;
  1437.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1435:24: Taking false branch
  1433. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1434. {
  1435.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                               ^
  1436.         return NULL;
  1437.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1437:5: 
  1435.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
  1436.         return NULL;
  1437.     return &av_pix_fmt_descriptors[pix_fmt];
            ^
  1438. }
  1439. 

libavutil/pixdesc.c:1438:1: return from a call to av_pix_fmt_desc_get
  1436.         return NULL;
  1437.     return &av_pix_fmt_descriptors[pix_fmt];
  1438. }
        ^
  1439. 
  1440. const AVPixFmtDescriptor *av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)

libswscale/swscale_unscaled.c:495:9: Taking true branch
493. 
494.     /* if this is non-native rgb444/555/565, don't handle it here. */
495.     if (IS_NOT_NE(srcId, desc_src) || IS_NOT_NE(dstId, desc_dst))
             ^
496.         return NULL;
497. 
