From 4913f05ccf70dc1470f284b9a32c0e66991f6029 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Fri, 26 Nov 2021 19:44:21 +0100 Subject: fftools/ffmpeg_opt: Don't duplicate array unnecessarily Signed-off-by: Andreas Rheinhardt --- fftools/ffmpeg.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'fftools/ffmpeg.h') diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 21c63415d6..a20ca964fb 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -273,9 +273,10 @@ typedef struct OutputFilter { uint64_t channel_layout; // those are only set if no format is specified and the encoder gives us multiple options - int *formats; - uint64_t *channel_layouts; - int *sample_rates; + // They point directly to the relevant lists of the encoder. + const int *formats; + const uint64_t *channel_layouts; + const int *sample_rates; } OutputFilter; typedef struct FilterGraph { -- cgit v1.2.3