From 6637db086bc73308711a1bd0c8fce0e5a0f2b42d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 18 Dec 2014 20:17:15 +0100 Subject: [PATCH] decoder/ffmpeg: add "pure" attributes --- src/decoder/plugins/FfmpegDecoderPlugin.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/decoder/plugins/FfmpegDecoderPlugin.cxx b/src/decoder/plugins/FfmpegDecoderPlugin.cxx index 9c7ce58cb..1f9f583e7 100644 --- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx +++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx @@ -198,6 +198,7 @@ ffmpeg_init(gcc_unused const config_param ¶m) return true; } +gcc_pure static int ffmpeg_find_audio_stream(const AVFormatContext &format_context) { @@ -252,7 +253,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);