Fix audio analysis; make sure we don't decode video and let it pile up unwanted.
[dcpomatic.git] / src / lib / ffmpeg_examiner.h
index 8c31eb2c4aedadae419e7c5e41b83841f848c93b..1ef7e3ba90f00f6dc04dfa2c9fe029e1a108fe87 100644 (file)
@@ -17,9 +17,9 @@
 
 */
 
-#include <boost/optional.hpp>
 #include "ffmpeg.h"
 #include "video_examiner.h"
+#include <boost/optional.hpp>
 
 class FFmpegAudioStream;
 class FFmpegSubtitleStream;
@@ -29,9 +29,10 @@ class FFmpegExaminer : public FFmpeg, public VideoExaminer
 public:
        FFmpegExaminer (boost::shared_ptr<const FFmpegContent>);
        
-       float video_frame_rate () const;
+       boost::optional<float> video_frame_rate () const;
        dcp::Size video_size () const;
        ContentTime video_length () const;
+       boost::optional<float> sample_aspect_ratio () const;
 
        std::vector<boost::shared_ptr<FFmpegSubtitleStream> > subtitle_streams () const {
                return _subtitle_streams;