Add an assert.
authorCarl Hetherington <cth@carlh.net>
Tue, 15 Feb 2022 13:35:48 +0000 (14:35 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 17 Feb 2022 08:59:26 +0000 (09:59 +0100)
src/lib/ffmpeg_examiner.cc

index fab9990060041602191380d47291d8a24b87cba7..01886da7f90ce0c7bd68a8ebd4a57f36dd7f6b19 100644 (file)
@@ -489,6 +489,7 @@ PixelQuanta
 FFmpegExaminer::pixel_quanta () const
 {
        auto const desc = av_pix_fmt_desc_get(video_codec_context()->pix_fmt);
+       DCPOMATIC_ASSERT (desc);
        return { 1 << desc->log2_chroma_w, 1 << desc->log2_chroma_h };
 }