X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg.cc;h=0668f9f37b381707b726cee11086ec4511845bca;hb=b62cc4a8ced62d0d23da5a66494236be2822be79;hp=adc5c224c6f4e8ea408287de3a7360f3cb3e25fc;hpb=f4f6a2504e5fedb67513689eaeac9dd88ee38ca9;p=dcpomatic.git diff --git a/src/lib/ffmpeg.cc b/src/lib/ffmpeg.cc index adc5c224c..0668f9f37 100644 --- a/src/lib/ffmpeg.cc +++ b/src/lib/ffmpeg.cc @@ -134,7 +134,7 @@ FFmpeg::setup_general () 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) {