Show audio bit depth in content properties (#559).
[dcpomatic.git] / src / lib / ffmpeg_audio_stream.h
index a5ed90c972e46f0a6297ff31eb17810bd8026fa3..aae982f9e81ff6ecaff40f62b384dc893cf067dc 100644 (file)
@@ -30,20 +30,20 @@ struct ffmpeg_pts_offset_test;
 class FFmpegAudioStream : public FFmpegStream, public AudioStream
 {
 public:
-       FFmpegAudioStream (std::string name, int id, int frame_rate, Frame length, int channels)
+       FFmpegAudioStream(std::string name, int id, int frame_rate, Frame length, int channels, int bit_depth)
                : FFmpegStream (name, id)
-               , AudioStream (frame_rate, length, channels)
+               , AudioStream(frame_rate, length, channels, bit_depth)
        {}
 
-       FFmpegAudioStream (std::string name, std::string codec_name_, int id, int frame_rate, Frame length, int channels)
+       FFmpegAudioStream(std::string name, std::string codec_name_, int id, int frame_rate, Frame length, int channels, int bit_depth)
                : FFmpegStream (name, id)
-               , AudioStream (frame_rate, length, channels)
+               , AudioStream(frame_rate, length, channels, bit_depth)
                , codec_name (codec_name_)
        {}
 
-       FFmpegAudioStream (std::string name, int id, int frame_rate, Frame length, AudioMapping mapping)
+       FFmpegAudioStream(std::string name, int id, int frame_rate, Frame length, AudioMapping mapping, int bit_depth)
                : FFmpegStream (name, id)
-               , AudioStream (frame_rate, length, mapping)
+               , AudioStream(frame_rate, length, mapping, bit_depth)
        {}
 
        FFmpegAudioStream (cxml::ConstNodePtr, int);
@@ -61,7 +61,7 @@ private:
        /* Constructor for tests */
        FFmpegAudioStream ()
                : FFmpegStream ("", 0)
-               , AudioStream (0, 0, 0)
+               , AudioStream(0, 0, 0, 0)
        {}
 };