libsForQt5.libopenshot: fix build with FFmpeg 8.0
This commit is contained in:
@@ -35,6 +35,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
./0001-link-magickcore.diff
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Fix FFmpeg 8.0 API compatibility (FF_PROFILE_* -> AV_PROFILE_*)
|
||||
substituteInPlace src/FFmpegWriter.cpp \
|
||||
--replace-fail "FF_PROFILE_H264_BASELINE" "AV_PROFILE_H264_BASELINE" \
|
||||
--replace-fail "FF_PROFILE_H264_CONSTRAINED" "AV_PROFILE_H264_CONSTRAINED"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
doxygen
|
||||
|
||||
Reference in New Issue
Block a user