Copyright (C) 2010 Splitted-Desktop Systems
Version 0.2.5 - DD.Jun.2010
+* Drop dependency on libavformat
* Fix build with older VA-API 0.29-sds
* Fix decoding of some H.264 streams. e.g. Ice Age 2 trailer
fi
dnl Check for FFmpeg
-PKG_CHECK_MODULES(LIBAVFORMAT, [libavformat])
-AC_CHECK_HEADERS([libavformat/avformat.h])
-
PKG_CHECK_MODULES(LIBAVCODEC, [libavcodec])
-AC_CHECK_HEADERS([libavcodec/avcodec.h])
-AC_CHECK_HEADERS([libavcodec/vaapi.h], [],
+AC_CHECK_HEADERS([libavcodec/avcodec.h ffmpeg/avcodec.h])
+AC_CHECK_HEADERS([libavcodec/vaapi.h ffmpeg/vaapi.h], [break],
AC_MSG_ERROR([The system FFmpeg headers do not support VA-API]))
AC_DEFINE_UNQUOTED(USE_GLX, $USE_GLX,
$(GST_BASE_CFLAGS) \
$(GST_CFLAGS) \
$(LIBAVCODEC_CFLAGS) \
- $(LIBAVFORMAT_CFLAGS) \
$(LIBVA_CFLAGS) \
$(NULL)
$(GST_BASE_LIBS) \
$(GST_LIBS) \
$(LIBAVCODEC_LIBS) \
- $(LIBAVFORMAT_LIBS) \
$(LIBVA_LIBS) \
$(NULL)
*/
#include "config.h"
-#include <libavcodec/avcodec.h>
-#include <libavcodec/vaapi.h>
-#include <libavformat/avformat.h>
+#ifdef HAVE_LIBAVCODEC_AVCODEC_H
+# include <libavcodec/avcodec.h>
+#endif
+#ifdef HAVE_FFMPEG_AVCODEC_H
+# include <ffmpeg/avcodec.h>
+#endif
+#ifdef HAVE_LIBAVCODEC_VAAPI_H
+# include <libavcodec/vaapi.h>
+#endif
+#ifdef HAVE_FFMPEG_VAAPI_H
+# include <ffmpeg/vaapi.h>
+#endif
#include "gstvaapidecoder_ffmpeg.h"
#include "gstvaapidecoder_priv.h"
#include "gstvaapidisplay_priv.h"
static gpointer
gst_vaapi_decoder_ffmpeg_init_once_cb(gpointer user_data)
{
- av_register_all();
+ avcodec_register_all();
return NULL;
}