summaryrefslogtreecommitdiff
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:12:19 +0100
commitc3b35ba7e551dd2788ab17f04dace2274a832091 (patch)
tree4a864f702de57abe8140485efa180909c80b8263
parenta6a057f63675f98d98734b6441bc9fbb2faf198a (diff)
Round sample rate calculations in audio FFmpeg examiner.
-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
)
)