mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #815] [MERGED] Redefined ffmpeg's av_err2str macro to be c++ friendly #1789
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#1789
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/815
Author: @zmckevitt
Created: 9/6/2024
Status: ✅ Merged
Merged: 9/8/2024
Merged by: @georgemoralis
Base:
main← Head:ubuntu24📝 Commits (5)
577bb66Fixed compiler error for av_err2string by redefining in c++ friendly way419d685removed link from comment, putting in PR9291b67fixed formatting5bb5063Minor fix: enable qt gui to find PKG files with lowercase extension .pkg0e48540Added missing dependencies and instructions for enabling QT for linux builds📊 Changes
3 files changed (+21 additions, -7 deletions)
View changed files
📝
documents/building-linux.md(+8 -5)📝
src/core/libraries/avplayer/avplayer_source.cpp(+11 -0)📝
src/qt_gui/main_window.cpp(+2 -2)📄 Description
When compiling on Ubuntu 24.04, the definition of
av_err2strinexternals/ffmpeg-core/include/libavutil/error.hthrows a compiler error when attempting to use the macro in a c++ environment (namelysrc/core/libraries/avplayer/avplayer_source.cpp).This fix redefines the macro in a 'c++ friendly' manner without modifying the external library and generates no additional compiler warnings in my experience using g++13 or clang18.
More info: https://github.com/joncampbell123/composite-video-simulator/issues/5
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.