Build fix for Ubuntu-16.04-era compilers.
authorCarl Hetherington <cth@carlh.net>
Sat, 13 Mar 2021 08:52:37 +0000 (09:52 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 13 Mar 2021 08:52:37 +0000 (09:52 +0100)
src/lib/ffmpeg_decoder.cc

index 3f0ac8a7d2cd1f0da0fd44b7e7bd303040784e15..c591ba30c09be4e812cb37f94f8ad7e3b1f3f0ee 100644 (file)
@@ -103,7 +103,7 @@ FFmpegDecoder::FFmpegDecoder (shared_ptr<const Film> film, shared_ptr<const FFmp
        }
 
        for (auto i: c->ffmpeg_audio_streams()) {
        }
 
        for (auto i: c->ffmpeg_audio_streams()) {
-               _next_time[i] = {};
+               _next_time[i] = boost::optional<dcpomatic::ContentTime>();
        }
 }
 
        }
 }
 
@@ -444,7 +444,7 @@ DCPOMATIC_ENABLE_WARNINGS
        _have_current_subtitle = false;
 
        for (auto& i: _next_time) {
        _have_current_subtitle = false;
 
        for (auto& i: _next_time) {
-               i.second = {};
+               i.second = boost::optional<dcpomatic::ContentTime>();
        }
 }
 
        }
 }