mac arm: try to fix compilation

This commit is contained in:
Megamouse 2023-05-18 18:01:20 +02:00
parent 8676913e73
commit 6794ae35a1

View File

@ -73,11 +73,11 @@ namespace utils
{ {
if (list_decoders ? av_codec_is_decoder(codec) : av_codec_is_encoder(codec)) if (list_decoders ? av_codec_is_decoder(codec) : av_codec_is_encoder(codec))
{ {
codecs.emplace_back( codecs.emplace_back(ffmpeg_codec{
static_cast<int>(codec->id), .codec_id = static_cast<int>(codec->id),
codec->name ? codec->name : "unknown", .name = codec->name ? codec->name : "unknown",
codec->long_name ? codec->long_name : "unknown" .long_name = codec->long_name ? codec->long_name : "unknown"
); });
} }
} }
std::sort(codecs.begin(), codecs.end(), [](const ffmpeg_codec& l, const ffmpeg_codec& r){ return l.name < r.name; }); std::sort(codecs.begin(), codecs.end(), [](const ffmpeg_codec& l, const ffmpeg_codec& r){ return l.name < r.name; });