Show audio bit depth in content properties (#559).
[dcpomatic.git] / src / lib / ffmpeg_examiner.cc
index fdcacb465602693fba0bf668cc82d7bd9b82ddd6..46f4f236e889515eca0254da7f7195be74efb5bb 100644 (file)
@@ -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
                                        )
                                );