aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/dvenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-08-12 22:31:50 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-08-13 16:28:49 +0200
commitcfc65520324ae640299bd321ef88ae76dcee6f78 (patch)
treecb20ecc1b48bd5a5e8fe78b027700e1dd6ea1984 /libavformat/dvenc.c
parent4147f63d63358e5c1969bfe431ee08ca54f8434d (diff)
downloadffmpeg-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/dvenc.c')
0 files changed, 0 insertions, 0 deletions