summaryrefslogtreecommitdiff
path: root/libavfilter/src_movie.c
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2020-08-24 12:16:34 +0200
committerNicolas George <george@nsup.org>2020-09-08 14:02:40 +0200
commit2f76476549a01ae2c4ec2a440e4b14c5aba64869 (patch)
treef9e33f27250dffb1779469ff792df59f4431d421 /libavfilter/src_movie.c
parent6a2df7ca26cf31b36facdb14ede9ebeb4bce8773 (diff)
lavfi: regroup formats lists in a single structure.
It will allow to refernce it as a whole without clunky macros. Most of the changes have been automatically made with sed: sed -i ' s/-> *in_formats/->incfg.formats/g; s/-> *out_formats/->outcfg.formats/g; s/-> *in_channel_layouts/->incfg.channel_layouts/g; s/-> *out_channel_layouts/->outcfg.channel_layouts/g; s/-> *in_samplerates/->incfg.samplerates/g; s/-> *out_samplerates/->outcfg.samplerates/g; ' src/libavfilter/*(.)
Diffstat (limited to 'libavfilter/src_movie.c')
-rw-r--r--libavfilter/src_movie.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
index fc26be15b6..b0294ca79b 100644
--- a/libavfilter/src_movie.c
+++ b/libavfilter/src_movie.c
@@ -362,19 +362,19 @@ static int movie_query_formats(AVFilterContext *ctx)
switch (c->codec_type) {
case AVMEDIA_TYPE_VIDEO:
list[0] = c->format;
- if ((ret = ff_formats_ref(ff_make_format_list(list), &outlink->in_formats)) < 0)
+ if ((ret = ff_formats_ref(ff_make_format_list(list), &outlink->incfg.formats)) < 0)
return ret;
break;
case AVMEDIA_TYPE_AUDIO:
list[0] = c->format;
- if ((ret = ff_formats_ref(ff_make_format_list(list), &outlink->in_formats)) < 0)
+ if ((ret = ff_formats_ref(ff_make_format_list(list), &outlink->incfg.formats)) < 0)
return ret;
list[0] = c->sample_rate;
- if ((ret = ff_formats_ref(ff_make_format_list(list), &outlink->in_samplerates)) < 0)
+ if ((ret = ff_formats_ref(ff_make_format_list(list), &outlink->incfg.samplerates)) < 0)
return ret;
list64[0] = c->channel_layout;
if ((ret = ff_channel_layouts_ref(ff_make_format64_list(list64),
- &outlink->in_channel_layouts)) < 0)
+ &outlink->incfg.channel_layouts)) < 0)
return ret;
break;
}