diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-05-16 11:35:20 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-05-19 20:20:38 +0200 |
commit | 41a558fea06cc0a23b8d2d0dfb03ef6a25cf5100 (patch) | |
tree | 858e350dc3640ac64482aad416a3cadadbd56bd6 /libavfilter/formats.h | |
parent | 2c8f97831ad290c24f69b6d3fdaf9153830ce743 (diff) | |
download | ffmpeg-41a558fea06cc0a23b8d2d0dfb03ef6a25cf5100.tar.gz |
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.h | 3 |
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. |