Skip to content

Commit

Permalink
multimedia/avidemux: Add patch for x265.
Browse files Browse the repository at this point in the history
Signed-off-by: Willy Sudiarto Raharjo <[email protected]>
  • Loading branch information
willysr committed Dec 5, 2024
1 parent d4ea2d1 commit afc8fa8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
4 changes: 3 additions & 1 deletion multimedia/avidemux/avidemux.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=avidemux
VERSION=${VERSION:-2.8.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}

Expand Down Expand Up @@ -90,6 +90,8 @@ find -L . \
sed -i 's|../avidemux/qt4|../avidemux/qt4 -DLRELEASE_EXECUTABLE=/usr/bin/lrelease-qt5|' bootStrap.bash || exit 1
sed -i 's|0.19|1.0|' avidemux_plugins/ADM_videoFilters6/ass/CMakeLists.txt || exit 1

patch -p1 < $CWD/x265-4.0.patch

bash bootStrap.bash --with-core --with-cli --with-plugins

make -C buildCli DESTDIR="$PKG" install
Expand Down
23 changes: 23 additions & 0 deletions multimedia/avidemux/x265-4.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff -ru avidemux_2.8.1.orig/avidemux_plugins/ADM_videoEncoder/x265/ADM_x265.cpp avidemux_2.8.1/avidemux_plugins/ADM_videoEncoder/x265/ADM_x265.cpp
--- avidemux_2.8.1.orig/avidemux_plugins/ADM_videoEncoder/x265/ADM_x265.cpp 2024-10-12 10:07:58.005741891 +0200
+++ avidemux_2.8.1/avidemux_plugins/ADM_videoEncoder/x265/ADM_x265.cpp 2024-10-12 11:12:13.519781376 +0200
@@ -205,8 +205,8 @@
//
x265_nal *nal;
uint32_t nbNal = 0;
- x265_picture pic_out;
- api->picture_init(&param,&pic_out);
+ x265_picture *pic_out;
+ api->picture_init(&param,pic_out);
out->flags = 0;

int er;
@@ -236,7 +236,7 @@


// 3-encode
- if(false==postAmble(out,nbNal,nal,&pic_out))
+ if(false==postAmble(out,nbNal,nal,pic_out))
{
ADM_warning("[x265] postAmble failed\n");
return false;

0 comments on commit afc8fa8

Please sign in to comment.