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

libavcodec/utils.c:285:1: start of procedure avcodec_align_dimensions()
283. }
284. 
285. void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height)
     ^
286. {
287.     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->pix_fmt);

libavcodec/utils.c:287:5: 
285. void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height)
286. {
287.     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->pix_fmt);
         ^
288.     int chroma_shift = desc->log2_chroma_w;
289.     int linesize_align[AV_NUM_DATA_POINTERS];

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:288:5: 
286. {
287.     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->pix_fmt);
288.     int chroma_shift = desc->log2_chroma_w;
         ^
289.     int linesize_align[AV_NUM_DATA_POINTERS];
290.     int align;

void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height)
{
    const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->pix_fmt);
    int chroma_shift = desc->log2_chroma_w;
    int linesize_align[AV_NUM_DATA_POINTERS];
    int align;
    avcodec_align_dimensions2(s, width, height, linesize_align);
    align               = FFMAX(linesize_align[0], linesize_align[3]);
    linesize_align[1] <<= chroma_shift;
    linesize_align[2] <<= chroma_shift;
    align               = FFMAX3(align, linesize_align[1], linesize_align[2]);
    *width              = FFALIGN(*width, align);
}
['void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height)\n{\n    const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->pix_fmt);\n    int chroma_shift = desc->log2_chroma_w;\n    int linesize_align[AV_NUM_DATA_POINTERS];\n    int align;\n    avcodec_align_dimensions2(s, width, height, linesize_align);\n    align               = FFMAX(linesize_align[0], linesize_align[3]);\n    linesize_align[1] <<= chroma_shift;\n    linesize_align[2] <<= chroma_shift;\n    align               = FFMAX3(align, linesize_align[1], linesize_align[2]);\n    *width              = FFALIGN(*width, align);\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}']