Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-08-31 17:03:14 +0300
committerJames Almer <jamrial@gmail.com>2022-03-15 15:42:46 +0300
commit1f96db959c1235bb7079d354e09914a0a2608f62 (patch)
tree21ac480d5b148c0524761853e6badb3a90a7ca3f /libavfilter/af_anlmdn.c
parent8a5896ec1f635ccf0d726f7ba7a06649ebeebf25 (diff)
avfilter: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/af_anlmdn.c')
-rw-r--r--libavfilter/af_anlmdn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/af_anlmdn.c b/libavfilter/af_anlmdn.c
index 54cbd8d387..c82be33e7c 100644
--- a/libavfilter/af_anlmdn.c
+++ b/libavfilter/af_anlmdn.c
@@ -141,7 +141,7 @@ static int config_filter(AVFilterContext *ctx)
if (new_cache) {
if (s->cache)
av_samples_copy(new_cache->extended_data, s->cache->extended_data, 0, 0,
- s->cache->nb_samples, new_cache->channels, new_cache->format);
+ s->cache->nb_samples, new_cache->ch_layout.nb_channels, new_cache->format);
av_frame_free(&s->cache);
s->cache = new_cache;
} else {
@@ -156,7 +156,7 @@ static int config_filter(AVFilterContext *ctx)
if (new_window) {
if (s->window)
av_samples_copy(new_window->extended_data, s->window->extended_data, 0, 0,
- s->window->nb_samples, new_window->channels, new_window->format);
+ s->window->nb_samples, new_window->ch_layout.nb_channels, new_window->format);
av_frame_free(&s->window);
s->window = new_window;
} else {
@@ -285,7 +285,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
}
s->in = in;
- ff_filter_execute(ctx, filter_channel, out, NULL, inlink->channels);
+ ff_filter_execute(ctx, filter_channel, out, NULL, inlink->ch_layout.nb_channels);
if (out != in)
av_frame_free(&in);