summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-05 23:37:03 +0100
committerwm4 <wm4@nowhere>2016-02-05 23:37:59 +0100
commit1661ba09eb455a961243f2a88152ce8fdcb514cc (patch)
treea28b92d53bd26e68ed4082dbc1ed05b80c31eb86
parentc0de087ba191a4daf3a152e0ab09b5687fab8449 (diff)
downloadmpv-1661ba09eb455a961243f2a88152ce8fdcb514cc.tar.bz2
mpv-1661ba09eb455a961243f2a88152ce8fdcb514cc.tar.xz
lavfi: fix build on Libav
It doesn't provide this function. The code is not really designed to work without it, so it will probably mess up big time, but at least make it compile again.
-rw-r--r--player/lavfi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/player/lavfi.c b/player/lavfi.c
index 118a766ea2..40537c7ba8 100644
--- a/player/lavfi.c
+++ b/player/lavfi.c
@@ -464,8 +464,10 @@ static void feed_input_pads(struct lavfi *c)
pad->input_needed = false;
pad->input_eof |= !pad->connected;
+#if LIBAVFILTER_VERSION_MICRO >= 100
if (!av_buffersrc_get_nb_failed_requests(pad->buffer))
continue;
+#endif
if (c->draining_recover_eof || c->draining_new_format)
continue;