X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg_file_encoder.h;h=78840d6a82ef9091de6f5b2baca8c1754dd7feea;hb=2b0cad926f8206390db09a659f6d63341a912871;hp=5bf501370ab6d9ad917b6808a0ffc1041b176378;hpb=1c57df596882f15403ee97d01862f8b76cfb797b;p=dcpomatic.git diff --git a/src/lib/ffmpeg_file_encoder.h b/src/lib/ffmpeg_file_encoder.h index 5bf501370..78840d6a8 100644 --- a/src/lib/ffmpeg_file_encoder.h +++ b/src/lib/ffmpeg_file_encoder.h @@ -27,6 +27,7 @@ #include "dcpomatic_time.h" #include "encoder.h" #include "event_history.h" +#include "image_store.h" #include "log.h" #include #include @@ -80,9 +81,6 @@ private: void audio_frame (int size); - static void buffer_free(void* opaque, uint8_t* data); - void buffer_free2(uint8_t* data); - AVCodec const * _video_codec = nullptr; AVCodecContext* _video_codec_context = nullptr; std::vector> _audio_streams; @@ -105,11 +103,7 @@ private: std::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; + ImageStore _pending_images; static int _video_stream_index; static int _audio_stream_index_base;