diff options
author | Max Kellermann <max@duempel.org> | 2014-12-18 20:17:15 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-18 20:17:15 +0100 |
commit | 0cf4c6ffea83337e0f69e81176e3281f3d333c6f (patch) | |
tree | 2ca71d7de75f09f5a2c651104c294205861eda60 /src | |
parent | 25f89afbfb120b97a75dbe26da282153eb708cc6 (diff) | |
download | mpd-0cf4c6ffea83337e0f69e81176e3281f3d333c6f.tar.gz mpd-0cf4c6ffea83337e0f69e81176e3281f3d333c6f.tar.xz mpd-0cf4c6ffea83337e0f69e81176e3281f3d333c6f.zip |
decoder/ffmpeg: add "pure" attributes
Diffstat (limited to '')
-rw-r--r-- | src/decoder/plugins/FfmpegDecoderPlugin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/decoder/plugins/FfmpegDecoderPlugin.cxx b/src/decoder/plugins/FfmpegDecoderPlugin.cxx index 0afdea6e4..53b3f297b 100644 --- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx +++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx @@ -192,6 +192,7 @@ ffmpeg_init(gcc_unused const config_param ¶m) return true; } +gcc_pure static int ffmpeg_find_audio_stream(const AVFormatContext *format_context) { @@ -246,7 +247,7 @@ timestamp_fallback(int64_t t, int64_t fallback) * assume that the stream's start time is zero, which appears to be * the best way out of that situation. */ -static int64_t +static constexpr int64_t start_time_fallback(const AVStream &stream) { return timestamp_fallback(stream.start_time, 0); |