mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 07:27:49 +00:00
Merge pull request #5164 from HiassofT/le10-ffmpeg-testing
ffmpeg: optionally allow minimal ffmpeg binary in image
This commit is contained in:
commit
2a04b633c2
@ -115,6 +115,15 @@ pre_configure_target() {
|
|||||||
rm -rf .${TARGET_NAME}
|
rm -rf .${TARGET_NAME}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ "${FFMPEG_TESTING}" = "yes" ]; then
|
||||||
|
PKG_FFMPEG_TESTING="--enable-encoder=wrapped_avframe --enable-muxer=null"
|
||||||
|
if [ "${PROJECT}" = "RPi" ]; then
|
||||||
|
PKG_FFMPEG_TESTING+=" --enable-vout-drm --enable-outdev=vout_drm"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
PKG_FFMPEG_TESTING="--disable-programs"
|
||||||
|
fi
|
||||||
|
|
||||||
configure_target() {
|
configure_target() {
|
||||||
./configure --prefix="/usr" \
|
./configure --prefix="/usr" \
|
||||||
--cpu="${TARGET_CPU}" \
|
--cpu="${TARGET_CPU}" \
|
||||||
@ -146,7 +155,6 @@ configure_target() {
|
|||||||
--pkg-config="${TOOLCHAIN}/bin/pkg-config" \
|
--pkg-config="${TOOLCHAIN}/bin/pkg-config" \
|
||||||
--enable-optimizations \
|
--enable-optimizations \
|
||||||
--disable-extra-warnings \
|
--disable-extra-warnings \
|
||||||
--disable-programs \
|
|
||||||
--enable-avdevice \
|
--enable-avdevice \
|
||||||
--enable-avcodec \
|
--enable-avcodec \
|
||||||
--enable-avformat \
|
--enable-avformat \
|
||||||
@ -218,7 +226,8 @@ configure_target() {
|
|||||||
--enable-asm \
|
--enable-asm \
|
||||||
--disable-altivec \
|
--disable-altivec \
|
||||||
${PKG_FFMPEG_FPU} \
|
${PKG_FFMPEG_FPU} \
|
||||||
--disable-symver
|
--disable-symver \
|
||||||
|
${PKG_FFMPEG_TESTING}
|
||||||
}
|
}
|
||||||
|
|
||||||
post_makeinstall_target() {
|
post_makeinstall_target() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user