Don't throw an exception if we can't find bits_per_pixel, as it's not the end of...
[dcpomatic.git] / src / lib / ffmpeg_examiner.h
index a511a2fc1fd20360eab70dbbffaeed4f7efa19bc..5cd70d979cd6722f22fdebc3a22bef7f28a64c12 100644 (file)
@@ -69,7 +69,7 @@ public:
                return video_codec_context()->colorspace;
        }
 
-       int bits_per_pixel () const;
+       boost::optional<int> bits_per_pixel () const;
 
 private:
        void video_packet (AVCodecContext *);