X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg.cc;h=ebe62b51fbd412cb73956b2ae86db2c6058257ab;hb=491daf8790f35611052d8954d5d74df275dcda18;hp=ed3e0721f2810c0b7a7e56fc084d7a2a16f49278;hpb=df085fc0ea4f1a3f009de5a7a5bf9f241173bcba;p=dcpomatic.git diff --git a/src/lib/ffmpeg.cc b/src/lib/ffmpeg.cc index ed3e0721f..ebe62b51f 100644 --- a/src/lib/ffmpeg.cc +++ b/src/lib/ffmpeg.cc @@ -32,7 +32,6 @@ extern "C" { using std::string; using std::cout; -using std::stringstream; using boost::shared_ptr; using libdcp::raw_convert; @@ -95,8 +94,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 (5 * 60 * 1e6).c_str(), 0); - av_dict_set (&options, "probesize", raw_convert (5 * 60 * 1e6).c_str(), 0); + av_dict_set (&options, "analyzeduration", raw_convert (5 * 60 * 1000000).c_str(), 0); + av_dict_set (&options, "probesize", raw_convert (5 * 60 * 1000000).c_str(), 0); if (avformat_open_input (&_format_context, 0, 0, &options) < 0) { throw OpenFileError (_ffmpeg_content->path(0).string ());