diff mbox series

[FFmpeg-devel,1/6] avfilter/formats: Remove ff_make_formatu64_list()

Message ID 20200808140202.586-1-andreas.rheinhardt@gmail.com
State Accepted
Commit efbe58ceb6cc9bf108379ead7e077a7ae948d153
Headers show
Series [FFmpeg-devel,1/6] avfilter/formats: Remove ff_make_formatu64_list() | expand

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Andreas Rheinhardt Aug. 8, 2020, 2:01 p.m. UTC
It is unused since 8cbb055760c725d0fb99fb759caabb5f4e37e340 and it
actually coincides with avfilter_make_format64_list().

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavfilter/formats.c | 11 -----------
 libavfilter/formats.h |  3 ---
 2 files changed, 14 deletions(-)

Comments

Paul B Mahol Aug. 19, 2020, 6:11 p.m. UTC | #1
On 8/8/20, Andreas Rheinhardt <andreas.rheinhardt@gmail.com> wrote:
> It is unused since 8cbb055760c725d0fb99fb759caabb5f4e37e340 and it
> actually coincides with avfilter_make_format64_list().

LGTM.
diff mbox series

Patch

diff --git a/libavfilter/formats.c b/libavfilter/formats.c
index de4315369d..bcc539bb38 100644
--- a/libavfilter/formats.c
+++ b/libavfilter/formats.c
@@ -289,17 +289,6 @@  AVFilterFormats *ff_make_format_list(const int *fmts)
     return formats;
 }
 
-AVFilterChannelLayouts *ff_make_formatu64_list(const uint64_t *fmts)
-{
-    MAKE_FORMAT_LIST(AVFilterChannelLayouts,
-                     channel_layouts, nb_channel_layouts);
-    if (count)
-        memcpy(formats->channel_layouts, fmts,
-               sizeof(*formats->channel_layouts) * count);
-
-    return formats;
-}
-
 AVFilterChannelLayouts *avfilter_make_format64_list(const int64_t *fmts)
 {
     MAKE_FORMAT_LIST(AVFilterChannelLayouts,
diff --git a/libavfilter/formats.h b/libavfilter/formats.h
index cc588f30d8..708bee3ee8 100644
--- a/libavfilter/formats.h
+++ b/libavfilter/formats.h
@@ -141,9 +141,6 @@  AVFilterChannelLayouts *ff_all_channel_counts(void);
 av_warn_unused_result
 AVFilterChannelLayouts *avfilter_make_format64_list(const int64_t *fmts);
 
-av_warn_unused_result
-AVFilterChannelLayouts *ff_make_formatu64_list(const uint64_t *fmts);
-
 
 /**
  * A helper for query_formats() which sets all links to the same list of channel