libswscale/swscale_unscaled.c:1198: error: Null Dereference
  pointer `desc` last assigned on line 1194 could be null and is dereferenced at line 1198, column 21.

libswscale/swscale_unscaled.c:1191:1: start of procedure check_image_pointers()
1189. }
1190. 
1191. static int check_image_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt,
      ^
1192.                                 const int linesizes[4])
1193. {

libswscale/swscale_unscaled.c:1194:5: 
1192.                                 const int linesizes[4])
1193. {
1194.     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
          ^
1195.     int i;
1196. 

libavutil/pixdesc.c:1840:1: start of procedure av_pix_fmt_desc_get()
  1838. }
  1839. 
  1840. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
        ^
  1841. {
  1842.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)

libavutil/pixdesc.c:1842:9: Taking false branch
  1840. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1841. {
  1842.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                ^
  1843.         return NULL;
  1844.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1842:24: Taking true branch
  1840. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1841. {
  1842.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                               ^
  1843.         return NULL;
  1844.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1843:9: 
  1841. {
  1842.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
  1843.         return NULL;
                ^
  1844.     return &av_pix_fmt_descriptors[pix_fmt];
  1845. }

libavutil/pixdesc.c:1845:1: return from a call to av_pix_fmt_desc_get
  1843.         return NULL;
  1844.     return &av_pix_fmt_descriptors[pix_fmt];
  1845. }
        ^
  1846. 
  1847. const AVPixFmtDescriptor *av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)

libswscale/swscale_unscaled.c:1197:10: 
1195.     int i;
1196. 
1197.     for (i = 0; i < 4; i++) {
               ^
1198.         int plane = desc->comp[i].plane;
1199.         if (!data[plane] || !linesizes[plane])

libswscale/swscale_unscaled.c:1197:17: Loop condition is true. Entering loop body
1195.     int i;
1196. 
1197.     for (i = 0; i < 4; i++) {
                      ^
1198.         int plane = desc->comp[i].plane;
1199.         if (!data[plane] || !linesizes[plane])

libswscale/swscale_unscaled.c:1198:9: 
1196. 
1197.     for (i = 0; i < 4; i++) {
1198.         int plane = desc->comp[i].plane;
              ^
1199.         if (!data[plane] || !linesizes[plane])
1200.             return 0;

static int check_image_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt,
                                const int linesizes[4])
{
    const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
    int i;
    for (i = 0; i < 4; i++) {
        int plane = desc->comp[i].plane;
        if (!data[plane] || !linesizes[plane])
            return 0;
    }
    return 1;
}
['static int check_image_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt,\n                                const int linesizes[4])\n{\n    const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);\n    int i;\n    for (i = 0; i < 4; i++) {\n        int plane = desc->comp[i].plane;\n        if (!data[plane] || !linesizes[plane])\n            return 0;\n    }\n    return 1;\n}', 'const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)\n{\n    if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)\n        return NULL;\n    return &av_pix_fmt_descriptors[pix_fmt];\n}']