summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-06-06 16:07:16 +0100
committerCarl Hetherington <cth@carlh.net>2018-06-06 16:07:16 +0100
commita8bfc5acbb3944ed0653f293284cec7d8af42931 (patch)
treededaf265a13b61f217bcfbe1e06f1fa901ed73f8 /src
parentfdcbd7eb473950f784fba05dcbf4bff115dbbd06 (diff)
Round sample rate calculations in audio FFmpeg examiner.
Diffstat (limited to 'src')
-rw-r--r--src/lib/ffmpeg_examiner.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc
index 6c76ba5a4..4223a4bad 100644
--- a/src/lib/ffmpeg_examiner.cc
+++ b/src/lib/ffmpeg_examiner.cc
@@ -72,7 +72,7 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c, shared_ptr<Jo
s->codec->codec->name,
s->id,
s->codec->sample_rate,
- (double (_format_context->duration) / AV_TIME_BASE) * s->codec->sample_rate,
+ llrint ((double (_format_context->duration) / AV_TIME_BASE) * s->codec->sample_rate),
s->codec->channels
)
)