generic-pc: add audio sample conversion

ffmpeg audiodecoders after version 1.1 deliver audio samples in planar
formats by default instead of packed as before. Additionally, the AC3
decoder delivers now in planar float.
Use libswresample for sample format conversion, this will work with old
(where it hopefully does nothing) and new ffmpeg versions.
Later on, also sample rate and channel layout conversion could be
implemented if desired.
Tested with ffmpeg versions 1.0.6 and 1.2.1.
This commit is contained in:
Stefan Seyfried
2013-06-01 13:43:51 +02:00
parent e5e05ffa09
commit f4f72f34b9
2 changed files with 51 additions and 6 deletions

View File

@@ -29,6 +29,7 @@ if test x$BOXTYPE = xgeneric; then
# don't know which version is exactly needed here...
PKG_CHECK_MODULES([AVUTIL], [libavutil])
PKG_CHECK_MODULES([SWSCALE], [libswscale])
PKG_CHECK_MODULES([SWRESAMPLE], [libswresample])
fi
AC_OUTPUT([
Makefile