mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-30 08:51:11 +02:00
raspi: fix audio decoding with newer libavcodec
Current libavcodec does no longer always return S16 sample format, but the conversion needs to be done explicitly. Use libswscale for that. Not tested on raspbian, only on yocto/ffmpeg.
This commit is contained in:
@@ -30,7 +30,6 @@ if test x$BOXTYPE = xgeneric; then
|
||||
PKG_CHECK_MODULES([AVCODEC], [libavcodec >= 54.28.0])
|
||||
# don't know which version is exactly needed here...
|
||||
PKG_CHECK_MODULES([SWSCALE], [libswscale])
|
||||
PKG_CHECK_MODULES([SWRESAMPLE], [libswresample])
|
||||
else
|
||||
# openmaxil are the broadcom userspace libs
|
||||
# my yocto (openembedded) layer has an openmaxil package built from userland git.
|
||||
@@ -46,6 +45,7 @@ if test x$BOXTYPE = xgeneric; then
|
||||
PKG_CHECK_MODULES([AVFORMAT], [libavformat])
|
||||
PKG_CHECK_MODULES([AVCODEC], [libavcodec])
|
||||
fi
|
||||
PKG_CHECK_MODULES([SWRESAMPLE], [libswresample])
|
||||
# don't know which version is exactly needed here...
|
||||
PKG_CHECK_MODULES([AVUTIL], [libavutil])
|
||||
fi
|
||||
|
Reference in New Issue
Block a user