summaryrefslogtreecommitdiffstats
path: root/player/lavfi.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/lavfi.c')
-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);