diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-11-26 19:44:21 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-11-30 11:53:22 +0100 |
commit | 4913f05ccf70dc1470f284b9a32c0e66991f6029 (patch) | |
tree | c27b72ca676e67d2791a5b19bc9a71be2b4a00c6 /fftools/ffmpeg.h | |
parent | d9f07a506d230321f826dcb50828e1d10e852b44 (diff) | |
download | ffmpeg-4913f05ccf70dc1470f284b9a32c0e66991f6029.tar.gz |
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.h | 7 |
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 { |