libavfilter/vf_yadif.c:466: error: Null Dereference
  pointer `s->csp` last assigned on line 465 could be null and is dereferenced at line 466, column 9.

libavfilter/vf_yadif.c:456:1: start of procedure config_props()
454. }
455. 
456. static int config_props(AVFilterLink *link)
     ^
457. {
458.     YADIFContext *s = link->src->priv;

libavfilter/vf_yadif.c:458:5: 
456. static int config_props(AVFilterLink *link)
457. {
458.     YADIFContext *s = link->src->priv;
         ^
459. 
460.     link->time_base.num = link->src->inputs[0]->time_base.num;

libavfilter/vf_yadif.c:460:5: 
458.     YADIFContext *s = link->src->priv;
459. 
460.     link->time_base.num = link->src->inputs[0]->time_base.num;
         ^
461.     link->time_base.den = link->src->inputs[0]->time_base.den * 2;
462.     link->w             = link->src->inputs[0]->w;

libavfilter/vf_yadif.c:461:5: 
459. 
460.     link->time_base.num = link->src->inputs[0]->time_base.num;
461.     link->time_base.den = link->src->inputs[0]->time_base.den * 2;
         ^
462.     link->w             = link->src->inputs[0]->w;
463.     link->h             = link->src->inputs[0]->h;

libavfilter/vf_yadif.c:462:5: 
460.     link->time_base.num = link->src->inputs[0]->time_base.num;
461.     link->time_base.den = link->src->inputs[0]->time_base.den * 2;
462.     link->w             = link->src->inputs[0]->w;
         ^
463.     link->h             = link->src->inputs[0]->h;
464. 

libavfilter/vf_yadif.c:463:5: 
461.     link->time_base.den = link->src->inputs[0]->time_base.den * 2;
462.     link->w             = link->src->inputs[0]->w;
463.     link->h             = link->src->inputs[0]->h;
         ^
464. 
465.     s->csp = av_pix_fmt_desc_get(link->format);

libavfilter/vf_yadif.c:465:5: 
463.     link->h             = link->src->inputs[0]->h;
464. 
465.     s->csp = av_pix_fmt_desc_get(link->format);
         ^
466.     if (s->csp->comp[0].depth_minus1 / 8 == 1) {
467.         s->filter_line  = filter_line_c_16bit;

libavutil/pixdesc.c:1507:1: start of procedure av_pix_fmt_desc_get()
  1505. }
  1506. 
  1507. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
        ^
  1508. {
  1509.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)

libavutil/pixdesc.c:1509:9: Taking false branch
  1507. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1508. {
  1509.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                ^
  1510.         return NULL;
  1511.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1509:24: Taking true branch
  1507. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1508. {
  1509.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                               ^
  1510.         return NULL;
  1511.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1510:9: 
  1508. {
  1509.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
  1510.         return NULL;
                ^
  1511.     return &av_pix_fmt_descriptors[pix_fmt];
  1512. }

libavutil/pixdesc.c:1512:1: return from a call to av_pix_fmt_desc_get
  1510.         return NULL;
  1511.     return &av_pix_fmt_descriptors[pix_fmt];
  1512. }
        ^
  1513. 
  1514. const AVPixFmtDescriptor *av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)

libavfilter/vf_yadif.c:466:9: 
464. 
465.     s->csp = av_pix_fmt_desc_get(link->format);
466.     if (s->csp->comp[0].depth_minus1 / 8 == 1) {
             ^
467.         s->filter_line  = filter_line_c_16bit;
468.         s->filter_edges = filter_edges_16bit;

static int config_props(AVFilterLink *link)
{
    YADIFContext *s = link->src->priv;
    link->time_base.num = link->src->inputs[0]->time_base.num;
    link->time_base.den = link->src->inputs[0]->time_base.den * 2;
    link->w             = link->src->inputs[0]->w;
    link->h             = link->src->inputs[0]->h;
    s->csp = av_pix_fmt_desc_get(link->format);
    if (s->csp->comp[0].depth_minus1 / 8 == 1) {
        s->filter_line  = filter_line_c_16bit;
        s->filter_edges = filter_edges_16bit;
    } else {
        s->filter_line  = filter_line_c;
        s->filter_edges = filter_edges;
        if (ARCH_X86)
            ff_yadif_init_x86(s);
    }
    return 0;
}
['static int config_props(AVFilterLink *link)\n{\n    YADIFContext *s = link->src->priv;\n    link->time_base.num = link->src->inputs[0]->time_base.num;\n    link->time_base.den = link->src->inputs[0]->time_base.den * 2;\n    link->w             = link->src->inputs[0]->w;\n    link->h             = link->src->inputs[0]->h;\n    s->csp = av_pix_fmt_desc_get(link->format);\n    if (s->csp->comp[0].depth_minus1 / 8 == 1) {\n        s->filter_line  = filter_line_c_16bit;\n        s->filter_edges = filter_edges_16bit;\n    } else {\n        s->filter_line  = filter_line_c;\n        s->filter_edges = filter_edges;\n        if (ARCH_X86)\n            ff_yadif_init_x86(s);\n    }\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}']