From ce5870a3a8f2b10668ee4f04c2ae0287f66f31b2 Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Sun, 11 Feb 2018 00:51:33 +0000 Subject: cbs: Refcount all the things! This makes it easier for users of the CBS API to get alloc/free right - all subelements use the buffer API so that it's clear how to free them. It also allows eliding some redundant copies: the packet -> fragment copy disappears after this change if the input packet is refcounted, and more codec-specific cases are now possible (but not included in this patch). --- libavcodec/cbs_internal.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'libavcodec/cbs_internal.h') diff --git a/libavcodec/cbs_internal.h b/libavcodec/cbs_internal.h index 1a1c22f068..4c6f421d19 100644 --- a/libavcodec/cbs_internal.h +++ b/libavcodec/cbs_internal.h @@ -53,9 +53,6 @@ typedef struct CodedBitstreamType { int (*assemble_fragment)(CodedBitstreamContext *ctx, CodedBitstreamFragment *frag); - // Free the content and data of a single unit. - void (*free_unit)(CodedBitstreamUnit *unit); - // Free the codec internal state. void (*close)(CodedBitstreamContext *ctx); } CodedBitstreamType; -- cgit v1.2.3