aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/filter
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2017-01-24 08:11:42 +0100
committerGravatar wm4 <wm4@nowhere>2017-01-24 08:11:42 +0100
commitb14fac9afa79e44d8b0323c6ddbef1557cdd0d8d (patch)
tree676e8e9ef45690491d827b553ec8cc29f49e84f3 /video/filter
parent6be58df8d14922bc1f4252f9f69ca9c0d74c331a (diff)
build: replace some FFmpeg API checks with version checks
The FFmpeg versions we support all have the APIs we were checking for. Only Libav missed them. Simplify this by explicitly checking for FFmpeg in the code, instead of trying to detect the presence of the API.
Diffstat (limited to 'video/filter')
-rw-r--r--video/filter/vf_lavfi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/filter/vf_lavfi.c b/video/filter/vf_lavfi.c
index 2f4bc92ecc..e28d7fbb6f 100644
--- a/video/filter/vf_lavfi.c
+++ b/video/filter/vf_lavfi.c
@@ -287,7 +287,7 @@ static struct mp_image *av_to_mp(struct vf_instance *vf, AVFrame *av_frame)
static void get_metadata_from_av_frame(struct vf_instance *vf, AVFrame *frame)
{
-#if HAVE_AVFRAME_METADATA
+#if LIBAVUTIL_VERSION_MICRO >= 100
struct vf_priv_s *p = vf->priv;
if (!p->metadata)
p->metadata = talloc_zero(p, struct mp_tags);