X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg_examiner.cc;h=b07ee5d623d5421c151b6c9a5e01ad0b5c4082d0;hb=33606b80e3dff7eb1f79f9070694d329bef0baf9;hp=78b96666f4f8065476b2c83483cf9290aa09d0c3;hpb=45f928ac06f0fbd8e62c6f08ad43799285d004f5;p=dcpomatic.git diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc index 78b96666f..b07ee5d62 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -304,7 +304,7 @@ FFmpegExaminer::sample_aspect_ratio () const AVRational sar = av_guess_sample_aspect_ratio (_format_context, _format_context->streams[_video_stream.get()], 0); if (sar.num == 0) { /* I assume this means that we don't know */ - return optional (); + return {}; } return double (sar.num) / sar.den; } @@ -312,7 +312,7 @@ FFmpegExaminer::sample_aspect_ratio () const string FFmpegExaminer::subtitle_stream_name (AVStream* s) const { - string n = stream_name (s); + auto n = stream_name (s); if (n.empty()) { n = _("unknown");