diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-12-25 22:34:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-12-25 22:34:21 +0100 |
| commit | f3617efde1751ac9e55f692369dc4ba3c6350ca8 (patch) | |
| tree | 48c17abf1dbadf276229c3aafdcd9b06d155a771 /src/lib/ffmpeg_examiner.cc | |
| parent | 0fabbb1680b5042570d50a2276004e2c0e62321c (diff) | |
Show audio bit depth in content properties (#559).
Diffstat (limited to 'src/lib/ffmpeg_examiner.cc')
| -rw-r--r-- | src/lib/ffmpeg_examiner.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc index fdcacb465..46f4f236e 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -91,7 +91,8 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c, shared_ptr<Jo s->id, s->codecpar->sample_rate, llrint ((double(_format_context->duration) / AV_TIME_BASE) * s->codecpar->sample_rate), - s->codecpar->channels + s->codecpar->channels, + s->codecpar->bits_per_raw_sample ? s->codecpar->bits_per_raw_sample : s->codecpar->bits_per_coded_sample ) ); |
