Commit 0cf4c6ff authored by Max Kellermann's avatar Max Kellermann

decoder/ffmpeg: add "pure" attributes

parent 25f89afb
...@@ -192,6 +192,7 @@ ffmpeg_init(gcc_unused const config_param &param) ...@@ -192,6 +192,7 @@ ffmpeg_init(gcc_unused const config_param &param)
return true; return true;
} }
gcc_pure
static int static int
ffmpeg_find_audio_stream(const AVFormatContext *format_context) ffmpeg_find_audio_stream(const AVFormatContext *format_context)
{ {
...@@ -246,7 +247,7 @@ timestamp_fallback(int64_t t, int64_t fallback) ...@@ -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 * assume that the stream's start time is zero, which appears to be
* the best way out of that situation. * the best way out of that situation.
*/ */
static int64_t static constexpr int64_t
start_time_fallback(const AVStream &stream) start_time_fallback(const AVStream &stream)
{ {
return timestamp_fallback(stream.start_time, 0); return timestamp_fallback(stream.start_time, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment