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.
This commit is contained in:
wm4 2017-10-27 18:07:34 +02:00
parent 83d44aca7d
commit 4d47805a76
1 changed files with 2 additions and 2 deletions

View File

@ -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);