libavcodec/utils.c:879: error: Null Dereference
  pointer `desc` last assigned on line 878 could be null and is dereferenced at line 879, column 12.

libavcodec/utils.c:876:1: start of procedure is_hwaccel_pix_fmt()
874. }
875. 
876. static int is_hwaccel_pix_fmt(enum AVPixelFormat pix_fmt)
     ^
877. {
878.     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);

libavcodec/utils.c:878:5: 
876. static int is_hwaccel_pix_fmt(enum AVPixelFormat pix_fmt)
877. {
878.     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
         ^
879.     return desc->flags & AV_PIX_FMT_FLAG_HWACCEL;
880. }

libavutil/pixdesc.c:1599:1: start of procedure av_pix_fmt_desc_get()
  1597. }
  1598. 
  1599. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
        ^
  1600. {
  1601.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)

libavutil/pixdesc.c:1601:9: Taking false branch
  1599. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1600. {
  1601.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                ^
  1602.         return NULL;
  1603.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1601:24: Taking true branch
  1599. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1600. {
  1601.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                               ^
  1602.         return NULL;
  1603.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1602:9: 
  1600. {
  1601.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
  1602.         return NULL;
                ^
  1603.     return &av_pix_fmt_descriptors[pix_fmt];
  1604. }

libavutil/pixdesc.c:1604:1: return from a call to av_pix_fmt_desc_get
  1602.         return NULL;
  1603.     return &av_pix_fmt_descriptors[pix_fmt];
  1604. }
        ^
  1605. 
  1606. const AVPixFmtDescriptor *av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)

libavcodec/utils.c:879:5: 
877. {
878.     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
879.     return desc->flags & AV_PIX_FMT_FLAG_HWACCEL;
         ^
880. }
881. 

static int is_hwaccel_pix_fmt(enum AVPixelFormat pix_fmt)
{
    const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
    return desc->flags & AV_PIX_FMT_FLAG_HWACCEL;
}
['static int is_hwaccel_pix_fmt(enum AVPixelFormat pix_fmt)\n{\n    const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);\n    return desc->flags & AV_PIX_FMT_FLAG_HWACCEL;\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}']