libavfilter/vsrc_color.c:118: error: Null Dereference
  pointer `pix_desc` last assigned on line 116 could be null and is dereferenced at line 118, column 19.

libavfilter/vsrc_color.c:110:1: start of procedure color_config_props()
108. }
109. 
110. static int color_config_props(AVFilterLink *inlink)
     ^
111. {
112.     AVFilterContext *ctx = inlink->src;

libavfilter/vsrc_color.c:112:5: 
110. static int color_config_props(AVFilterLink *inlink)
111. {
112.     AVFilterContext *ctx = inlink->src;
         ^
113.     ColorContext *color = ctx->priv;
114.     uint8_t rgba_color[4];

libavfilter/vsrc_color.c:113:5: 
111. {
112.     AVFilterContext *ctx = inlink->src;
113.     ColorContext *color = ctx->priv;
         ^
114.     uint8_t rgba_color[4];
115.     int is_packed_rgba;

libavfilter/vsrc_color.c:116:5: 
114.     uint8_t rgba_color[4];
115.     int is_packed_rgba;
116.     const AVPixFmtDescriptor *pix_desc = av_pix_fmt_desc_get(inlink->format);
         ^
117. 
118.     color->hsub = pix_desc->log2_chroma_w;

libavutil/pixdesc.c:1686:1: start of procedure av_pix_fmt_desc_get()
  1684. }
  1685. 
  1686. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
        ^
  1687. {
  1688.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)

libavutil/pixdesc.c:1688:9: Taking false branch
  1686. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1687. {
  1688.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                ^
  1689.         return NULL;
  1690.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1688:24: Taking true branch
  1686. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1687. {
  1688.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                               ^
  1689.         return NULL;
  1690.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1689:9: 
  1687. {
  1688.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
  1689.         return NULL;
                ^
  1690.     return &av_pix_fmt_descriptors[pix_fmt];
  1691. }

libavutil/pixdesc.c:1691:1: return from a call to av_pix_fmt_desc_get
  1689.         return NULL;
  1690.     return &av_pix_fmt_descriptors[pix_fmt];
  1691. }
        ^
  1692. 
  1693. const AVPixFmtDescriptor *av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)

libavfilter/vsrc_color.c:118:5: 
116.     const AVPixFmtDescriptor *pix_desc = av_pix_fmt_desc_get(inlink->format);
117. 
118.     color->hsub = pix_desc->log2_chroma_w;
         ^
119.     color->vsub = pix_desc->log2_chroma_h;
120. 

static int color_config_props(AVFilterLink *inlink)
{
    AVFilterContext *ctx = inlink->src;
    ColorContext *color = ctx->priv;
    uint8_t rgba_color[4];
    int is_packed_rgba;
    const AVPixFmtDescriptor *pix_desc = av_pix_fmt_desc_get(inlink->format);
    color->hsub = pix_desc->log2_chroma_w;
    color->vsub = pix_desc->log2_chroma_h;
    color->w &= ~((1 << color->hsub) - 1);
    color->h &= ~((1 << color->vsub) - 1);
    if (av_image_check_size(color->w, color->h, 0, ctx) < 0)
        return AVERROR(EINVAL);
    memcpy(rgba_color, color->color, sizeof(rgba_color));
    ff_fill_line_with_color(color->line, color->line_step, color->w, color->color,
                            inlink->format, rgba_color, &is_packed_rgba, NULL);
    av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d r:%d/%d color:0x%02x%02x%02x%02x[%s]\n",
           color->w, color->h, color->frame_rate.num, color->frame_rate.den,
           color->color[0], color->color[1], color->color[2], color->color[3],
           is_packed_rgba ? "rgba" : "yuva");
    inlink->w = color->w;
    inlink->h = color->h;
    inlink->time_base  = av_inv_q(color->frame_rate);
    inlink->frame_rate = color->frame_rate;
    return 0;
}
['static int color_config_props(AVFilterLink *inlink)\n{\n    AVFilterContext *ctx = inlink->src;\n    ColorContext *color = ctx->priv;\n    uint8_t rgba_color[4];\n    int is_packed_rgba;\n    const AVPixFmtDescriptor *pix_desc = av_pix_fmt_desc_get(inlink->format);\n    color->hsub = pix_desc->log2_chroma_w;\n    color->vsub = pix_desc->log2_chroma_h;\n    color->w &= ~((1 << color->hsub) - 1);\n    color->h &= ~((1 << color->vsub) - 1);\n    if (av_image_check_size(color->w, color->h, 0, ctx) < 0)\n        return AVERROR(EINVAL);\n    memcpy(rgba_color, color->color, sizeof(rgba_color));\n    ff_fill_line_with_color(color->line, color->line_step, color->w, color->color,\n                            inlink->format, rgba_color, &is_packed_rgba, NULL);\n    av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d r:%d/%d color:0x%02x%02x%02x%02x[%s]\\n",\n           color->w, color->h, color->frame_rate.num, color->frame_rate.den,\n           color->color[0], color->color[1], color->color[2], color->color[3],\n           is_packed_rgba ? "rgba" : "yuva");\n    inlink->w = color->w;\n    inlink->h = color->h;\n    inlink->time_base  = av_inv_q(color->frame_rate);\n    inlink->frame_rate = color->frame_rate;\n    return 0;\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}']