Commit 3fc201d9 authored by Max Kellermann's avatar Max Kellermann

input/ffmpeg: add `noexcept`

parent 5aa453ad
......@@ -51,7 +51,7 @@ struct FfmpegInputStream final : public InputStream {
SetReady();
}
~FfmpegInputStream() {
~FfmpegInputStream() noexcept {
avio_close(h);
}
......@@ -61,8 +61,9 @@ struct FfmpegInputStream final : public InputStream {
void Seek(offset_type offset) override;
};
gcc_const
static inline bool
input_ffmpeg_supported(void)
input_ffmpeg_supported() noexcept
{
void *opaque = nullptr;
return avio_enum_protocols(&opaque, 0) != nullptr;
......
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