X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg.h;h=b0769971e3e9c9f00f4812c51b3333badd6654f8;hb=fc4c3e7f0a08d9e2350edb56fa76258114042960;hp=5e1d0842ec771e6cccd803f4acf31442ae508006;hpb=7bc2134d658778e04f1756c255e604b4ab5a5831;p=dcpomatic.git diff --git a/src/lib/ffmpeg.h b/src/lib/ffmpeg.h index 5e1d0842e..b0769971e 100644 --- a/src/lib/ffmpeg.h +++ b/src/lib/ffmpeg.h @@ -36,6 +36,7 @@ DCPOMATIC_ENABLE_WARNINGS struct AVFormatContext; struct AVFrame; +struct AVStream; struct AVIOContext; class FFmpegContent; @@ -63,7 +64,7 @@ protected: std::vector> audio_streams, boost::optional first_video, double video_frame_rate ) const; - static FFmpegSubtitlePeriod subtitle_period (AVSubtitle const & sub); + static FFmpegSubtitlePeriod subtitle_period (AVPacket const* packet, AVStream const* stream, AVSubtitle const & sub); std::shared_ptr _ffmpeg_content; @@ -73,6 +74,7 @@ protected: FileGroup _file_group; AVFormatContext* _format_context = nullptr; + std::vector _codec_context; AVFrame* _frame = nullptr; /** Index of video stream within AVFormatContext */