-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- a/Core/HW/SimpleAudioDec.cpp 2024-02-04 08:08:02.000000000 -0500 | ||
+++ b/Core/HW/SimpleAudioDec.cpp 2024-02-15 14:48:27.114362051 -0500 | ||
@@ -81,7 +81,11 @@ | ||
return; | ||
} | ||
// Find decoder | ||
+#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 18, 100) | ||
codec_ = avcodec_find_decoder((AVCodecID)audioCodecId); | ||
+#else // this is a macro to const in the header | ||
+ codec_ = (AVCodec*)avcodec_find_decoder((AVCodecID)audioCodecId); | ||
+#endif | ||
if (!codec_) { | ||
// Eh, we shouldn't even have managed to compile. But meh. | ||
ERROR_LOG(ME, "This version of FFMPEG does not support AV_CODEC_ctx for audio (%s). Update your submodule.", GetCodecName(audioType)); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters