mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-29 00:33:01 +00:00
Fix build errors by changing AVCodec* to a const
...rather than a variable. Allows RPCS3 to build on macOS again (Xcode 14.1)
This commit is contained in:
parent
a18b46d8ad
commit
bf37087a10
@ -699,7 +699,7 @@ namespace utils
|
||||
AVCodecID used_codec = static_cast<AVCodecID>(m_video_codec_id);
|
||||
|
||||
// Find specified codec first
|
||||
if (AVCodec* encoder = avcodec_find_encoder(used_codec); !!encoder)
|
||||
if (const AVCodec* encoder = avcodec_find_encoder(used_codec); !!encoder)
|
||||
{
|
||||
media_log.success("video_encoder: Found requested video_codec %d = %s", static_cast<int>(used_codec), encoder->name);
|
||||
av_output_format = find_format(encoder);
|
||||
@ -724,7 +724,7 @@ namespace utils
|
||||
void* opaque = nullptr;
|
||||
for (const AVCodec* codec = av_codec_iterate(&opaque); !!codec; codec = av_codec_iterate(&opaque))
|
||||
{
|
||||
if (AVCodec* encoder = avcodec_find_encoder(codec->id); !!encoder)
|
||||
if (const AVCodec* encoder = avcodec_find_encoder(codec->id); !!encoder)
|
||||
{
|
||||
media_log.notice("video_encoder: Found video_codec %d = %s", static_cast<int>(used_codec), encoder->name);
|
||||
av_output_format = find_format(encoder);
|
||||
|
Loading…
x
Reference in New Issue
Block a user