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

libavcodec/utils.c:727:1: start of procedure is_hwaccel_pix_fmt()
725. }
726. 
727. static int is_hwaccel_pix_fmt(enum AVPixelFormat pix_fmt)
     ^
728. {
729.     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);

libavcodec/utils.c:729:5: 
727. static int is_hwaccel_pix_fmt(enum AVPixelFormat pix_fmt)
728. {
729.     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
         ^
730.     return desc->flags & AV_PIX_FMT_FLAG_HWACCEL;
731. }

libavutil/pixdesc.c:1768:1: start of procedure av_pix_fmt_desc_get()
  1766. }
  1767. 
  1768. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
        ^
  1769. {
  1770.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)

libavutil/pixdesc.c:1770:9: Taking false branch
  1768. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1769. {
  1770.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                ^
  1771.         return NULL;
  1772.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1770:24: Taking true branch
  1768. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1769. {
  1770.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                               ^
  1771.         return NULL;
  1772.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1771:9: 
  1769. {
  1770.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
  1771.         return NULL;
                ^
  1772.     return &av_pix_fmt_descriptors[pix_fmt];
  1773. }

libavutil/pixdesc.c:1773:1: return from a call to av_pix_fmt_desc_get
  1771.         return NULL;
  1772.     return &av_pix_fmt_descriptors[pix_fmt];
  1773. }
        ^
  1774. 
  1775. const AVPixFmtDescriptor *av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)

libavcodec/utils.c:730:5: 
728. {
729.     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
730.     return desc->flags & AV_PIX_FMT_FLAG_HWACCEL;
         ^
731. }
732. 

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}']