diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-08-12 22:31:50 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-08-13 16:28:49 +0200 |
commit | cfc65520324ae640299bd321ef88ae76dcee6f78 (patch) | |
tree | cb20ecc1b48bd5a5e8fe78b027700e1dd6ea1984 /libavformat/caf.h | |
parent | 4147f63d63358e5c1969bfe431ee08ca54f8434d (diff) | |
download | ffmpeg-cfc65520324ae640299bd321ef88ae76dcee6f78.tar.gz |
avfilter/formats: Avoid allocations when merging channel layouts
When one merges two AVFilterChannelLayouts structs, there is no need to
allocate a new one. Instead one can reuse one of the two given ones.
If one does this, one also doesn't need to update the references of the
AVFilterChannelLayouts that is reused. Therefore this commit reuses the
structure with the higher refcount.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/caf.h')
0 files changed, 0 insertions, 0 deletions