summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-26 19:44:21 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-30 11:53:22 +0100
commit4913f05ccf70dc1470f284b9a32c0e66991f6029 (patch)
treec27b72ca676e67d2791a5b19bc9a71be2b4a00c6 /fftools/ffmpeg.h
parentd9f07a506d230321f826dcb50828e1d10e852b44 (diff)
fftools/ffmpeg_opt: Don't duplicate array unnecessarily
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r--fftools/ffmpeg.h7
1 files changed, 4 insertions, 3 deletions
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 {