Skip to content

Commit a4f435e

Browse files
committed
ffmpeg7 support webp animation
1 parent 4c2072f commit a4f435e

File tree

3 files changed

+811
-0
lines changed

3 files changed

+811
-0
lines changed

.github/workflows/install-dependencies.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ case $LIB_NAME in
5151

5252
if [[ $PLAT == android ]];then
5353
./main.sh install -l 'soundtouch' -p android
54+
else
55+
./main.sh install -l 'webp' -p $PLAT
5456
fi
5557
;;
5658
ffmpeg6)

configs/ffconfig/auto-detect-third-libs.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,16 @@ fi
242242

243243
echo "----------------------"
244244

245+
pkg-config --libs libwebp --silence-errors >/dev/null && enable_webp=1
246+
if [[ $enable_webp ]];then
247+
echo "[✅] --enable-libwebp --enable-decoder=webp : $(pkg-config --modversion libwebp)"
248+
THIRD_CFG_FLAGS="$THIRD_CFG_FLAGS --enable-libwebp --enable-demuxer=webp --enable-decoder=libwebp"
249+
else
250+
echo "[❌] --disable-libwebp --disable-decoder=libwebp"
251+
fi
252+
253+
echo "----------------------"
254+
245255
# export PKG_CONFIG_LIBDIR=$PKG_CONFIG_LIBDIR:/opt/homebrew/Cellar/shaderc/2024.0/lib/pkgconfig:/opt/homebrew/Cellar/little-cms2/2.16/lib/pkgconfig
246256
# pkg-config --libs libplacebo --silence-errors >/dev/null && enable_placebo=1
247257

0 commit comments

Comments
 (0)