Commit c889482e authored by Rafaël Carré's avatar Rafaël Carré

avcodec: replacement for av_sample_fmt_is_planar

parent 24b5638a
...@@ -2422,6 +2422,9 @@ AS_IF([test "${enable_avcodec}" != "no"], [ ...@@ -2422,6 +2422,9 @@ AS_IF([test "${enable_avcodec}" != "no"], [
VLC_SAVE_FLAGS VLC_SAVE_FLAGS
CPPFLAGS="${CPPFLAGS} ${AVCODEC_CFLAGS}" CPPFLAGS="${CPPFLAGS} ${AVCODEC_CFLAGS}"
CFLAGS="${CFLAGS} ${AVCODEC_CFLAGS}" CFLAGS="${CFLAGS} ${AVCODEC_CFLAGS}"
LIBS="${LIBS} ${AVCODEC_LIBS}"
AC_CHECK_LIB(avutil, av_sample_fmt_is_planar,
AC_DEFINE([HAVE_AVUTIL_PLANAR], [1], [Define if libav* use planar audio formats]))
AC_CHECK_HEADERS(libavcodec/avcodec.h) AC_CHECK_HEADERS(libavcodec/avcodec.h)
AC_CHECK_HEADERS(libavutil/avutil.h) AC_CHECK_HEADERS(libavutil/avutil.h)
VLC_ADD_PLUGIN([avcodec]) VLC_ADD_PLUGIN([avcodec])
......
...@@ -21,6 +21,15 @@ ...@@ -21,6 +21,15 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/ *****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#ifndef HAVE_AVUTIL_PLANAR
# define av_sample_fmt_is_planar(x) (0)
#endif
#include "chroma.h" #include "chroma.h"
/* VLC <-> avcodec tables */ /* VLC <-> avcodec tables */
int GetFfmpegCodec( vlc_fourcc_t i_fourcc, int *pi_cat, int GetFfmpegCodec( vlc_fourcc_t i_fourcc, int *pi_cat,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment