Fix colour conversion choice on GTK3.
[dcpomatic.git] / src / lib / ffmpeg.cc
index fb34379106c72b8c5ae15756812e86e56dcdc9b7..2deaf6953f85392fe478ff1d7baec46fee98b393 100644 (file)
@@ -117,18 +117,13 @@ FFmpeg::setup_general ()
        _format_context->pb = _avio_context;
 
        AVDictionary* options = 0;
-       /* 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 * 1000000).c_str(), 0);
-       av_dict_set (&options, "probesize", raw_convert<string> (5 * 60 * 1000000).c_str(), 0);
        if (_ffmpeg_content->decryption_key()) {
                av_dict_set (&options, "decryption_key", _ffmpeg_content->decryption_key()->c_str(), 0);
        }
 
        int e = avformat_open_input (&_format_context, 0, 0, &options);
        if (e < 0) {
-               throw OpenFileError (_ffmpeg_content->path(0).string(), e, true);
+               throw OpenFileError (_ffmpeg_content->path(0).string(), e, OpenFileError::READ);
        }
 
        if (avformat_find_stream_info (_format_context, 0) < 0) {