summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_audio_stream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ffmpeg_audio_stream.cc')
-rw-r--r--src/lib/ffmpeg_audio_stream.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/ffmpeg_audio_stream.cc b/src/lib/ffmpeg_audio_stream.cc
index e0da3a22d..f56e04753 100644
--- a/src/lib/ffmpeg_audio_stream.cc
+++ b/src/lib/ffmpeg_audio_stream.cc
@@ -42,8 +42,7 @@ FFmpegAudioStream::FFmpegAudioStream (cxml::ConstNodePtr node, int version)
node->optional_number_child<int>("BitDepth")
)
{
- optional<ContentTime::Type> const f = node->optional_number_child<ContentTime::Type>("FirstAudio");
- if (f) {
+ if (auto f = node->optional_number_child<ContentTime::Type>("FirstAudio")) {
first_audio = ContentTime(f.get());
}
codec_name = node->optional_string_child("CodecName");