input/ffmpeg: add noexcept

This commit is contained in:
Max Kellermann 2019-03-13 09:58:33 +01:00
parent 5aa453ada3
commit 3fc201d985

View File

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