Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-03-22 00:25:27 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-03-24 01:45:45 +0300
commitf4098bbc3b10926f618cf89e24780c9e6ae9b8b5 (patch)
treedb7d738eeeefadfc5b2400c4375b2a50d9d07516 /libavcodec/noise_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/noise_bsf.c')
-rw-r--r--libavcodec/noise_bsf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/noise_bsf.c b/libavcodec/noise_bsf.c
index 05b5d5f32b..168f3aa373 100644
--- a/libavcodec/noise_bsf.c
+++ b/libavcodec/noise_bsf.c
@@ -23,7 +23,6 @@
#include "bsf.h"
#include "bsf_internal.h"
-#include "libavutil/avstring.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavutil/eval.h"
@@ -220,10 +219,10 @@ static const AVClass noise_class = {
.version = LIBAVUTIL_VERSION_INT,
};
-const AVBitStreamFilter ff_noise_bsf = {
- .name = "noise",
+const FFBitStreamFilter ff_noise_bsf = {
+ .p.name = "noise",
+ .p.priv_class = &noise_class,
.priv_data_size = sizeof(NoiseContext),
- .priv_class = &noise_class,
.init = noise_init,
.close = noise_close,
.filter = noise,