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

libavcodec/decode.c:698:1: start of procedure is_hwaccel_pix_fmt()
696. }
697. 
698. static int is_hwaccel_pix_fmt(enum AVPixelFormat pix_fmt)
     ^
699. {
700.     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);

libavcodec/decode.c:700:5: 
698. static int is_hwaccel_pix_fmt(enum AVPixelFormat pix_fmt)
699. {
700.     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
         ^
701.     return desc->flags & AV_PIX_FMT_FLAG_HWACCEL;
702. }

libavutil/pixdesc.c:1866:1: start of procedure av_pix_fmt_desc_get()
  1864. }
  1865. 
  1866. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
        ^
  1867. {
  1868.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)

libavutil/pixdesc.c:1868:9: Taking false branch
  1866. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1867. {
  1868.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                ^
  1869.         return NULL;
  1870.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1868:24: Taking true branch
  1866. const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
  1867. {
  1868.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
                               ^
  1869.         return NULL;
  1870.     return &av_pix_fmt_descriptors[pix_fmt];

libavutil/pixdesc.c:1869:9: 
  1867. {
  1868.     if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)
  1869.         return NULL;
                ^
  1870.     return &av_pix_fmt_descriptors[pix_fmt];
  1871. }

libavutil/pixdesc.c:1871:1: return from a call to av_pix_fmt_desc_get
  1869.         return NULL;
  1870.     return &av_pix_fmt_descriptors[pix_fmt];
  1871. }
        ^
  1872. 
  1873. const AVPixFmtDescriptor *av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)

libavcodec/decode.c:701:5: 
699. {
700.     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
701.     return desc->flags & AV_PIX_FMT_FLAG_HWACCEL;
         ^
702. }
703. 

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