summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_file_encoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-11-30 22:34:53 +0100
committerCarl Hetherington <cth@carlh.net>2019-11-30 22:34:53 +0100
commitce17803bf356f3e796dccde43b4cc3656609e7fc (patch)
tree834c90f8f4bcb6cf8a68d4dfd17c8d6375fb45e1 /src/lib/ffmpeg_file_encoder.h
parentd9e6b138e84e7a8504075b8581cca4d0fabfbc40 (diff)
More accurate calculation of export video pts; may fix #1663.
Also specify audio pts on the way in to the encoder to stop FFmpeg complaining.
Diffstat (limited to 'src/lib/ffmpeg_file_encoder.h')
-rw-r--r--src/lib/ffmpeg_file_encoder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_file_encoder.h b/src/lib/ffmpeg_file_encoder.h
index 9f1e75b68..57f9135fa 100644
--- a/src/lib/ffmpeg_file_encoder.h
+++ b/src/lib/ffmpeg_file_encoder.h
@@ -84,6 +84,8 @@ private:
int _video_frame_rate;
int _audio_frame_rate;
+ int64_t _audio_frames;
+
boost::shared_ptr<AudioBuffers> _pending_audio;
/** Store of shared_ptr<Image> to keep them alive whilst raw pointers into