diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-03-01 17:53:33 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-03-02 15:40:18 +0100 |
| commit | 33606b80e3dff7eb1f79f9070694d329bef0baf9 (patch) | |
| tree | 4493698e924bfe45821363a5202e34ae2e4cc99e /src/lib/ffmpeg_examiner.cc | |
| parent | 53fe2c86f3d50c07a0bbc79c71317724b425d8d7 (diff) | |
C++11 tidying.
Diffstat (limited to 'src/lib/ffmpeg_examiner.cc')
| -rw-r--r-- | src/lib/ffmpeg_examiner.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<double> (); + 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"); |
