summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_audio_stream.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-12-25 22:34:21 +0100
committerCarl Hetherington <cth@carlh.net>2022-12-25 22:34:21 +0100
commitf3617efde1751ac9e55f692369dc4ba3c6350ca8 (patch)
tree48c17abf1dbadf276229c3aafdcd9b06d155a771 /src/lib/ffmpeg_audio_stream.h
parent0fabbb1680b5042570d50a2276004e2c0e62321c (diff)
Show audio bit depth in content properties (#559).
Diffstat (limited to 'src/lib/ffmpeg_audio_stream.h')
-rw-r--r--src/lib/ffmpeg_audio_stream.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/ffmpeg_audio_stream.h b/src/lib/ffmpeg_audio_stream.h
index a5ed90c97..aae982f9e 100644
--- a/src/lib/ffmpeg_audio_stream.h
+++ b/src/lib/ffmpeg_audio_stream.h
@@ -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)
{}
};