diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-06-06 16:07:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-06-06 16:12:19 +0100 |
| commit | c3b35ba7e551dd2788ab17f04dace2274a832091 (patch) | |
| tree | 4a864f702de57abe8140485efa180909c80b8263 | |
| parent | a6a057f63675f98d98734b6441bc9fbb2faf198a (diff) | |
Round sample rate calculations in audio FFmpeg examiner.
| -rw-r--r-- | src/lib/ffmpeg_examiner.cc | 2 |
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 ) ) |
