avdeinterlace: Register all filters and only disable all except for yadif during...
authorSebastian Dröge <sebastian@centricular.com>
Wed, 20 Apr 2016 12:27:45 +0000 (15:27 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 20 Apr 2016 12:27:45 +0000 (15:27 +0300)
Otherwise avdeinterlace won't find any filters, and we only use yadif in
there.

https://bugzilla.gnome.org/show_bug.cgi?id=765319

configure.ac
ext/libav/gstav.c

index 058ca33..14c4900 100644 (file)
@@ -362,7 +362,7 @@ else
         --disable-programs --disable-ffserver --disable-ffplay --disable-ffprobe --disable-ffmpeg \
         --disable-encoder=flac --disable-protocols --disable-devices \
         --disable-network --disable-hwaccels --disable-dxva2 --disable-vdpau \
-        --disable-filters --disable-doc --disable-vda --disable-d3d11va --disable-dxva2 \
+        --disable-filters --enable-filter=yadif --disable-doc --disable-vda --disable-d3d11va --disable-dxva2 \
         --disable-iconv --enable-optimizations"
 
   if test "x$enable_gpl" == "xyes"; then
index eb476c9..30d691b 100644 (file)
@@ -30,6 +30,7 @@
 
 #include <libavcodec/avcodec.h>
 #include <libavformat/avformat.h>
+#include <libavfilter/avfiltergraph.h>
 
 #include "gstav.h"
 #include "gstavutils.h"
@@ -151,6 +152,7 @@ plugin_init (GstPlugin * plugin)
   gst_ffmpeg_init_pix_fmt_info ();
 
   av_register_all ();
+  avfilter_register_all ();
 
   gst_ffmpegaudenc_register (plugin);
   gst_ffmpegvidenc_register (plugin);