summaryrefslogtreecommitdiff
path: root/libavcodec/hapqa_extract_bsf.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-03-21 22:25:27 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-03-23 23:45:45 +0100
commitf4098bbc3b10926f618cf89e24780c9e6ae9b8b5 (patch)
treedb7d738eeeefadfc5b2400c4375b2a50d9d07516 /libavcodec/hapqa_extract_bsf.c
parent1dcd0adedd15f2595d51febbfc171c576c9e080a (diff)
avcodec/bsf: Add FFBitStreamFilter, hide internals of BSFs
This patch is analogous to 20f972701806be20a77f808db332d9489343bb78: It hides the internal part of AVBitStreamFilter by adding a new internal structure FFBitStreamFilter (declared in bsf_internal.h) that has an AVBitStreamFilter as its first member; the internal part of AVBitStreamFilter is moved to this new structure. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/hapqa_extract_bsf.c')
-rw-r--r--libavcodec/hapqa_extract_bsf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/hapqa_extract_bsf.c b/libavcodec/hapqa_extract_bsf.c
index 1c8b0669b7..0d9b40aaa6 100644
--- a/libavcodec/hapqa_extract_bsf.c
+++ b/libavcodec/hapqa_extract_bsf.c
@@ -125,10 +125,10 @@ static const AVClass hapqa_extract_class = {
.version = LIBAVUTIL_VERSION_INT,
};
-const AVBitStreamFilter ff_hapqa_extract_bsf = {
- .name = "hapqa_extract",
- .filter = hapqa_extract,
+const FFBitStreamFilter ff_hapqa_extract_bsf = {
+ .p.name = "hapqa_extract",
+ .p.codec_ids = codec_ids,
+ .p.priv_class = &hapqa_extract_class,
.priv_data_size = sizeof(HapqaExtractContext),
- .priv_class = &hapqa_extract_class,
- .codec_ids = codec_ids,
+ .filter = hapqa_extract,
};