libavcodec/h264.c:131: error: Null Dereference
  pointer `desc` last assigned on line 130 could be null and is dereferenced at line 131, column 18.

libavcodec/h264.c:125:1: start of procedure ff_h264_draw_horiz_band()
123. }
124. 
125. void ff_h264_draw_horiz_band(H264Context *h, int y, int height)
     ^
126. {
127.     AVCodecContext *avctx = h->avctx;

libavcodec/h264.c:127:5: 
125. void ff_h264_draw_horiz_band(H264Context *h, int y, int height)
126. {
127.     AVCodecContext *avctx = h->avctx;
         ^
128.     Picture *cur  = &h->cur_pic;
129.     Picture *last = h->ref_list[0][0].f.data[0] ? &h->ref_list[0][0] : NULL;

libavcodec/h264.c:128:5: 
126. {
127.     AVCodecContext *avctx = h->avctx;
128.     Picture *cur  = &h->cur_pic;
         ^
129.     Picture *last = h->ref_list[0][0].f.data[0] ? &h->ref_list[0][0] : NULL;
130.     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);

libavcodec/h264.c:129:21: Condition is true
127.     AVCodecContext *avctx = h->avctx;
128.     Picture *cur  = &h->cur_pic;
129.     Picture *last = h->ref_list[0][0].f.data[0] ? &h->ref_list[0][0] : NULL;
                         ^
130.     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
131.     int vshift = desc->log2_chroma_h;

libavcodec/h264.c:129:5: 
127.     AVCodecContext *avctx = h->avctx;
128.     Picture *cur  = &h->cur_pic;
129.     Picture *last = h->ref_list[0][0].f.data[0] ? &h->ref_list[0][0] : NULL;
         ^
130.     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
131.     int vshift = desc->log2_chroma_h;

libavcodec/h264.c:130:5: 
128.     Picture *cur  = &h->cur_pic;
129.     Picture *last = h->ref_list[0][0].f.data[0] ? &h->ref_list[0][0] : NULL;
130.     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
         ^
131.     int vshift = desc->log2_chroma_h;
132.     const int field_pic = h->picture_structure != PICT_FRAME;

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)

libavcodec/h264.c:131:5: 
129.     Picture *last = h->ref_list[0][0].f.data[0] ? &h->ref_list[0][0] : NULL;
130.     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
131.     int vshift = desc->log2_chroma_h;
         ^
132.     const int field_pic = h->picture_structure != PICT_FRAME;
133.     if (field_pic) {
