X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg_file_encoder.h;h=57f9135fa5e88e0a272ca8e601663374caebfd87;hb=5b109e2e90a8a05a1565a8a7983dbe1355740027;hp=5308947e6e2900b5f6d97a5f936518a67a5f3436;hpb=c4403784febdbdd42e9c32e67fadb147f11fe566;p=dcpomatic.git diff --git a/src/lib/ffmpeg_file_encoder.h b/src/lib/ffmpeg_file_encoder.h index 5308947e6..57f9135fa 100644 --- a/src/lib/ffmpeg_file_encoder.h +++ b/src/lib/ffmpeg_file_encoder.h @@ -25,6 +25,7 @@ #include "event_history.h" #include "audio_mapping.h" #include "log.h" +#include extern "C" { #include #include @@ -41,6 +42,10 @@ public: ExportFormat, int x264_crf, boost::filesystem::path output +#ifdef DCPOMATIC_VARIANT_SWAROOP + , boost::optional key + , boost::optional id +#endif ); void video (boost::shared_ptr, dcpomatic::DCPTime); @@ -79,12 +84,15 @@ private: int _video_frame_rate; int _audio_frame_rate; + int64_t _audio_frames; + boost::shared_ptr _pending_audio; /** Store of shared_ptr to keep them alive whilst raw pointers into their data have been passed to FFmpeg. */ std::map > _pending_images; + boost::mutex _pending_images_mutex; static int _video_stream_index; static int _audio_stream_index;