summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-10-27 18:07:34 +0200
committerwm4 <wm4@nowhere>2017-10-27 18:09:08 +0200
commit4d47805a761c588bb368076f42906ff2522dd90e (patch)
tree8811870bae742679a5741b8b263937e978752d66
parent83d44aca7dc7f46b8d3b64d441f5a8317a40e080 (diff)
downloadmpv-4d47805a761c588bb368076f42906ff2522dd90e.tar.bz2
mpv-4d47805a761c588bb368076f42906ff2522dd90e.tar.xz
lavfi: fix warnings with newer libavfilter versions
Most likely will cause new warnings with avfilter_graph_alloc_filter() on old libavfilter versions. Ingore that part.
-rw-r--r--player/lavfi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/lavfi.c b/player/lavfi.c
index e5bfe7fdf5..2ceb5502db 100644
--- a/player/lavfi.c
+++ b/player/lavfi.c
@@ -367,7 +367,7 @@ static bool init_pads(struct lavfi *c)
goto error; // can happen if pad reassociation fails
if (pad->dir == LAVFI_OUT) {
- AVFilter *dst_filter = NULL;
+ const AVFilter *dst_filter = NULL;
if (pad->type == STREAM_AUDIO) {
dst_filter = avfilter_get_by_name("abuffersink");
} else if (pad->type == STREAM_VIDEO) {
@@ -453,7 +453,7 @@ static bool init_pads(struct lavfi *c)
assert(0);
}
- AVFilter *filter = avfilter_get_by_name(filter_name);
+ const AVFilter *filter = avfilter_get_by_name(filter_name);
if (filter) {
char name[256];
snprintf(name, sizeof(name), "mpv_src_%s", pad->name);