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/mpeg2_metadata_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/mpeg2_metadata_bsf.c')
-rw-r--r--libavcodec/mpeg2_metadata_bsf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/mpeg2_metadata_bsf.c b/libavcodec/mpeg2_metadata_bsf.c
index 11b46c0ae3..1aa6e02791 100644
--- a/libavcodec/mpeg2_metadata_bsf.c
+++ b/libavcodec/mpeg2_metadata_bsf.c
@@ -16,11 +16,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "bsf.h"
+#include "bsf_internal.h"
#include "cbs.h"
#include "cbs_bsf.h"
#include "cbs_mpeg2.h"
@@ -232,12 +232,12 @@ static const enum AVCodecID mpeg2_metadata_codec_ids[] = {
AV_CODEC_ID_MPEG2VIDEO, AV_CODEC_ID_NONE,
};
-const AVBitStreamFilter ff_mpeg2_metadata_bsf = {
- .name = "mpeg2_metadata",
+const FFBitStreamFilter ff_mpeg2_metadata_bsf = {
+ .p.name = "mpeg2_metadata",
+ .p.codec_ids = mpeg2_metadata_codec_ids,
+ .p.priv_class = &mpeg2_metadata_class,
.priv_data_size = sizeof(MPEG2MetadataContext),
- .priv_class = &mpeg2_metadata_class,
.init = &mpeg2_metadata_init,
.close = &ff_cbs_bsf_generic_close,
.filter = &ff_cbs_bsf_generic_filter,
- .codec_ids = mpeg2_metadata_codec_ids,
};