Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VideoCommon/FrameDump: Build fix for libavformat major version 59 and newer. #10417

Merged

Conversation

jordan-woyak
Copy link
Member

av_guess_format now returns a pointer to const.
https://ffmpeg.org/doxygen/trunk/group__lavf__encoding.html#ga00bceb049f2b20716e2f36ebc990a350

#define FF_API_AVIOFORMAT               (LIBAVFORMAT_VERSION_MAJOR < 59)
#if FF_API_AVIOFORMAT
#define ff_const59
#else
#define ff_const59 const
#endif
ff_const59 AVOutputFormat *av_guess_format(const char *short_name,
                                const char *filename,
                                const char *mime_type);

… newer. av_guess_format now returns a pointer to const.
@AdmiralCurtiss
Copy link
Contributor

This probably fixes https://bugs.dolphin-emu.org/issues/12706, I'm guessing. Looks reasonable to me.

@AdmiralCurtiss AdmiralCurtiss merged commit 09a0ba0 into dolphin-emu:master Feb 4, 2022
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants