decoder/ffmpeg: add "noexcept"
This commit is contained in:
parent
5c300a9f1a
commit
6bacb23002
@ -366,7 +366,8 @@ ffmpeg_sample_format(enum AVSampleFormat sample_fmt) noexcept
|
||||
}
|
||||
|
||||
static void
|
||||
FfmpegParseMetaData(AVDictionary &dict, ReplayGainInfo &rg, MixRampInfo &mr)
|
||||
FfmpegParseMetaData(AVDictionary &dict,
|
||||
ReplayGainInfo &rg, MixRampInfo &mr) noexcept
|
||||
{
|
||||
AVDictionaryEntry *i = nullptr;
|
||||
|
||||
@ -382,7 +383,7 @@ FfmpegParseMetaData(AVDictionary &dict, ReplayGainInfo &rg, MixRampInfo &mr)
|
||||
|
||||
static void
|
||||
FfmpegParseMetaData(const AVStream &stream,
|
||||
ReplayGainInfo &rg, MixRampInfo &mr)
|
||||
ReplayGainInfo &rg, MixRampInfo &mr) noexcept
|
||||
{
|
||||
if (stream.metadata != nullptr)
|
||||
FfmpegParseMetaData(*stream.metadata, rg, mr);
|
||||
@ -390,7 +391,7 @@ FfmpegParseMetaData(const AVStream &stream,
|
||||
|
||||
static void
|
||||
FfmpegParseMetaData(const AVFormatContext &format_context, int audio_stream,
|
||||
ReplayGainInfo &rg, MixRampInfo &mr)
|
||||
ReplayGainInfo &rg, MixRampInfo &mr) noexcept
|
||||
{
|
||||
assert(audio_stream >= 0);
|
||||
|
||||
@ -403,7 +404,8 @@ FfmpegParseMetaData(const AVFormatContext &format_context, int audio_stream,
|
||||
|
||||
static void
|
||||
FfmpegParseMetaData(DecoderClient &client,
|
||||
const AVFormatContext &format_context, int audio_stream)
|
||||
const AVFormatContext &format_context,
|
||||
int audio_stream) noexcept
|
||||
{
|
||||
ReplayGainInfo rg;
|
||||
rg.Clear();
|
||||
@ -439,7 +441,7 @@ FfmpegScanMetadata(const AVFormatContext &format_context, int audio_stream,
|
||||
|
||||
static void
|
||||
FfmpegScanTag(const AVFormatContext &format_context, int audio_stream,
|
||||
TagBuilder &tag)
|
||||
TagBuilder &tag) noexcept
|
||||
{
|
||||
FullTagHandler h(tag);
|
||||
FfmpegScanMetadata(format_context, audio_stream, h);
|
||||
@ -451,7 +453,7 @@ FfmpegScanTag(const AVFormatContext &format_context, int audio_stream,
|
||||
*/
|
||||
static void
|
||||
FfmpegCheckTag(DecoderClient &client, InputStream *is,
|
||||
AVFormatContext &format_context, int audio_stream)
|
||||
AVFormatContext &format_context, int audio_stream) noexcept
|
||||
{
|
||||
AVStream &stream = *format_context.streams[audio_stream];
|
||||
if ((stream.event_flags & AVSTREAM_EVENT_FLAG_METADATA_UPDATED) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user