diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-03-21 22:25:27 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-03-23 23:45:45 +0100 |
commit | f4098bbc3b10926f618cf89e24780c9e6ae9b8b5 (patch) | |
tree | db7d738eeeefadfc5b2400c4375b2a50d9d07516 /libavcodec/mpeg4_unpack_bframes_bsf.c | |
parent | 1dcd0adedd15f2595d51febbfc171c576c9e080a (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/mpeg4_unpack_bframes_bsf.c')
-rw-r--r-- | libavcodec/mpeg4_unpack_bframes_bsf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mpeg4_unpack_bframes_bsf.c b/libavcodec/mpeg4_unpack_bframes_bsf.c index ae2c129d88..5493dafa97 100644 --- a/libavcodec/mpeg4_unpack_bframes_bsf.c +++ b/libavcodec/mpeg4_unpack_bframes_bsf.c @@ -155,12 +155,12 @@ static const enum AVCodecID codec_ids[] = { AV_CODEC_ID_MPEG4, AV_CODEC_ID_NONE, }; -const AVBitStreamFilter ff_mpeg4_unpack_bframes_bsf = { - .name = "mpeg4_unpack_bframes", +const FFBitStreamFilter ff_mpeg4_unpack_bframes_bsf = { + .p.name = "mpeg4_unpack_bframes", + .p.codec_ids = codec_ids, .priv_data_size = sizeof(UnpackBFramesBSFContext), .init = mpeg4_unpack_bframes_init, .filter = mpeg4_unpack_bframes_filter, .flush = mpeg4_unpack_bframes_close_flush, .close = mpeg4_unpack_bframes_close_flush, - .codec_ids = codec_ids, }; |