Fix crash caused by previous change; doubles are expressed using scientific notation...
authorCarl Hetherington <cth@carlh.net>
Mon, 12 May 2014 09:06:57 +0000 (10:06 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 12 May 2014 09:06:57 +0000 (10:06 +0100)
src/lib/ffmpeg.cc

index ed3e0721f2810c0b7a7e56fc084d7a2a16f49278..7ecc811be879a5af330402829377c7697a7204c2 100644 (file)
@@ -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 ());