aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bsf.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-05 05:13:32 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-25 23:01:54 +0200
commitafeefb306e89b3ea3eb8ac8227996dc79589b669 (patch)
treeba559e21773db9f29f91d4aaa5be2fed3243aada /libavcodec/bsf.h
parent52bd399972494b7065afa46ba23c5a62794b7c93 (diff)
downloadffmpeg-afeefb306e89b3ea3eb8ac8227996dc79589b669.tar.gz
avcodec/bsf: Avoid allocation for AVBSFInternal
Do this by allocating AVBSFContext together with the data that is currently in AVBSFInternal; or rather: Put AVBSFContext at the beginning of a new structure called FFBSFContext (which encompasses more than just the internal fields and is a proper context in its own right, hence the name) and remove the AVBSFInternal altogether. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/bsf.h')
-rw-r--r--libavcodec/bsf.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/libavcodec/bsf.h b/libavcodec/bsf.h
index 3b5faa85cb..8c5355d186 100644
--- a/libavcodec/bsf.h
+++ b/libavcodec/bsf.h
@@ -34,8 +34,6 @@
* @{
*/
-typedef struct AVBSFInternal AVBSFInternal;
-
/**
* The bitstream filter state.
*
@@ -58,12 +56,6 @@ typedef struct AVBSFContext {
const struct AVBitStreamFilter *filter;
/**
- * Opaque libavcodec internal data. Must not be touched by the caller in any
- * way.
- */
- AVBSFInternal *internal;
-
- /**
* Opaque filter-specific private data. If filter->priv_class is non-NULL,
* this is an AVOptions-enabled struct.
*/