summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-05-12 10:06:57 +0100
committerCarl Hetherington <cth@carlh.net>2014-05-12 10:06:57 +0100
commitef22df9ea621fe7de7801ae8bf54ff5463d59e2c (patch)
tree849b7a665d3a41b6b9e5bb5115a5b52603d47f6f /src/lib/ffmpeg.cc
parent37bcae702224fd17cbf3adb9964847cad04048de (diff)
Fix crash caused by previous change; doubles are expressed using scientific notation by default, so avoid them where possible.
Diffstat (limited to 'src/lib/ffmpeg.cc')
-rw-r--r--src/lib/ffmpeg.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ffmpeg.cc b/src/lib/ffmpeg.cc
index ed3e0721f..7ecc811be 100644
--- a/src/lib/ffmpeg.cc
+++ b/src/lib/ffmpeg.cc
@@ -95,8 +95,8 @@ FFmpeg::setup_general ()
/* These durations are in microseconds, and represent how far into the content file
we will look for streams.
*/
- av_dict_set (&options, "analyzeduration", raw_convert<string> (5 * 60 * 1e6).c_str(), 0);
- av_dict_set (&options, "probesize", raw_convert<string> (5 * 60 * 1e6).c_str(), 0);
+ av_dict_set (&options, "analyzeduration", raw_convert<string> (5 * 60 * 1000000).c_str(), 0);
+ av_dict_set (&options, "probesize", raw_convert<string> (5 * 60 * 1000000).c_str(), 0);
if (avformat_open_input (&_format_context, 0, 0, &options) < 0) {
throw OpenFileError (_ffmpeg_content->path(0).string ());