diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-13 01:01:16 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-07 22:35:14 +0200 |
commit | 3ba4f9c21e8bd78386738324d8767d74d75eec53 (patch) | |
tree | c0c9127edbbeaad333ffb4bcb2e5bc78b7b2c6a7 /libavfilter/vf_libopencv.c | |
parent | 3e9b8d14e5d0df72765a1c9ca683c9d0f1d51e1a (diff) | |
download | ffmpeg-3ba4f9c21e8bd78386738324d8767d74d75eec53.tar.gz |
avcodec/cbs_sei: Use RefStruct API for SEI messages
The SEI message code uses the AVBuffer API for its SEI messages
and contained buffers (like the extension buffer for HEVC
or the user data (un)registered payload buffers).
Contrary to the ordinary CBS code (where some of these
contained buffer references are actually references
to the provided AVPacket's data so that one can't replace
them with the RefStruct API), the CBS SEI code never uses
outside buffers at all and can therefore be switched entirely
to the RefStruct API. This avoids the overhead inherent
in the AVBuffer API (namely the separate allocations etc.).
Notice that the refcounting here is actually currently unused;
the refcounts are always one (or zero in case of no refcounting);
its only advantage is the flexibility provided by custom
free functions.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_libopencv.c')
0 files changed, 0 insertions, 0 deletions