diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-04 11:31:18 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-08 11:29:33 +0200 |
commit | 2ba04bafb427ea93e3614c0469a6e13e55ac9dc9 (patch) | |
tree | 5b1fea598507b7783023e56f04897f9ac8112f72 /libavcodec/cbs.h | |
parent | 2d722b6638a1b925d7e9e01e45611c450bfcf7ee (diff) | |
download | ffmpeg-2ba04bafb427ea93e3614c0469a6e13e55ac9dc9.tar.gz |
avcodec/cbs: Remove ff_cbs_alloc_unit_content
It is no longer used.
Also rename ff_cbs_alloc_unit_content2 to ff_cbs_alloc_unit_content.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/cbs.h')
-rw-r--r-- | libavcodec/cbs.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/libavcodec/cbs.h b/libavcodec/cbs.h index 5583063b5e..ee21623dac 100644 --- a/libavcodec/cbs.h +++ b/libavcodec/cbs.h @@ -364,21 +364,12 @@ void ff_cbs_fragment_reset(CodedBitstreamFragment *frag); void ff_cbs_fragment_free(CodedBitstreamFragment *frag); /** - * Allocate a new internal content buffer of the given size in the unit. - * - * The content will be zeroed. - */ -int ff_cbs_alloc_unit_content(CodedBitstreamUnit *unit, - size_t size, - void (*free)(void *opaque, uint8_t *content)); - -/** * Allocate a new internal content buffer matching the type of the unit. * * The content will be zeroed. */ -int ff_cbs_alloc_unit_content2(CodedBitstreamContext *ctx, - CodedBitstreamUnit *unit); +int ff_cbs_alloc_unit_content(CodedBitstreamContext *ctx, + CodedBitstreamUnit *unit); /** * Insert a new unit into a fragment with the given content. |