]> git.sesse.net Git - ffmpeg/commit
cbs: Add support functions for handling unit content references
authorMark Thompson <sw@jkqxz.net>
Mon, 27 Jul 2020 16:32:21 +0000 (17:32 +0100)
committerMark Thompson <sw@jkqxz.net>
Tue, 1 Sep 2020 23:00:57 +0000 (00:00 +0100)
commit42daac1c74169ec4373b5199932c5f3176a2e897
tree648c634f72e60fb0d6fff3da6ea9a1ac577de23b
parent2cb152d52f28081acf3c2306557944105af8374f
cbs: Add support functions for handling unit content references

Use the unit type table to determine what we need to do to clone the
internals of the unit content when making copies for refcounting or
writeability.  (This will still fail for units with complex content
if they do not have a defined clone function.)

Setup and naming from a patch by Andreas Rheinhardt
<andreas.rheinhardt@gmail.com>, but with the implementation changed
to use the unit type information if possible rather than requiring a
codec-specific function.
libavcodec/cbs.c
libavcodec/cbs.h
libavcodec/cbs_internal.h