Store audio length in AudioStream.
[dcpomatic.git] / src / lib / ffmpeg_audio_stream.h
index 84882e89c89c3a9f1057368c35da603b1d708edb..8de43c6323727b3ced2208c34248719dd6c6f428 100644 (file)
@@ -18,7 +18,6 @@
 */
 
 #include "ffmpeg_stream.h"
-#include "audio_mapping.h"
 #include "audio_stream.h"
 #include "dcpomatic_time.h"
 
@@ -27,9 +26,9 @@ struct ffmpeg_pts_offset_test;
 class FFmpegAudioStream : public FFmpegStream, public AudioStream
 {
 public:
-       FFmpegAudioStream (std::string name, int id, int frame_rate, int channels)
+       FFmpegAudioStream (std::string name, int id, int frame_rate, Frame length, int channels)
                : FFmpegStream (name, id)
-               , AudioStream (frame_rate, channels)
+               , AudioStream (frame_rate, length, channels)
        {}
 
        FFmpegAudioStream (cxml::ConstNodePtr, int);
@@ -46,6 +45,6 @@ private:
        /* Constructor for tests */
        FFmpegAudioStream ()
                : FFmpegStream ("", 0)
-               , AudioStream (0, 0)
+               , AudioStream (0, 0, 0)
        {}
 };