X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg_examiner.h;h=4378e241b973e53aa541d46da6afda1491e0e5f5;hb=c008066160d85b9ec9e5485375d7baaa5d27bda2;hp=381c5cea9c9e85a48ec894326f92a482f82bf8e7;hpb=09806bc8d6a48fc79d923ec1cdf6f90176bf8b6a;p=dcpomatic.git diff --git a/src/lib/ffmpeg_examiner.h b/src/lib/ffmpeg_examiner.h index 381c5cea9..4378e241b 100644 --- a/src/lib/ffmpeg_examiner.h +++ b/src/lib/ffmpeg_examiner.h @@ -29,9 +29,10 @@ class FFmpegExaminer : public FFmpeg, public VideoExaminer public: FFmpegExaminer (boost::shared_ptr); - float video_frame_rate () const; + boost::optional video_frame_rate () const; dcp::Size video_size () const; ContentTime video_length () const; + boost::optional sample_aspect_ratio () const; std::vector > subtitle_streams () const { return _subtitle_streams; @@ -46,6 +47,10 @@ public: } private: + void video_packet (AVCodecContext *); + void audio_packet (AVCodecContext *, boost::shared_ptr); + void subtitle_packet (AVCodecContext *, boost::shared_ptr); + std::string stream_name (AVStream* s) const; std::string audio_stream_name (AVStream* s) const; std::string subtitle_stream_name (AVStream* s) const;