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:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-16 12:35:20 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-19 21:20:38 +0300
commit41a558fea06cc0a23b8d2d0dfb03ef6a25cf5100 (patch)
tree858e350dc3640ac64482aad416a3cadadbd56bd6 /libavfilter/formats.h
parent2c8f97831ad290c24f69b6d3fdaf9153830ce743 (diff)
avfilter/formats: Constify channel_layout in ff_add_channel_layout()
It copies, not moves the channel layout. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/formats.h')
-rw-r--r--libavfilter/formats.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/formats.h b/libavfilter/formats.h
index caf23d0792..22224dce2d 100644
--- a/libavfilter/formats.h
+++ b/libavfilter/formats.h
@@ -180,7 +180,8 @@ av_warn_unused_result
int ff_set_common_formats_from_list(AVFilterContext *ctx, const int *fmts);
av_warn_unused_result
-int ff_add_channel_layout(AVFilterChannelLayouts **l, AVChannelLayout *channel_layout);
+int ff_add_channel_layout(AVFilterChannelLayouts **l,
+ const AVChannelLayout *channel_layout);
/**
* Add *ref as a new reference to f.