mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-03-13 09:00:40 +08:00
avcodec/avcodec: Schedule moving private fields of AVCodecParser out of avcodec.h
AVCodecParser has several fields which are not really meant
to be accessed by users, but it has no public-private
demarkation line, so these fields are technically public
and can therefore not simply be made private like
20f9727018 did for AVCodec.*
This commit therefore deprecates these fields and
schedules them to become private. All parsers have already
been switched to FFCodecParser, which (for now) is a union
of AVCodecParser and an unnamed clone of AVCodecParser
(new fields can be added at the end of this clone).
*: This is also the reason why split has never been removed despite
not being set for several years now.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -108,7 +108,7 @@ static int dvd_nav_parse(AVCodecParserContext *s,
|
||||
return buf_size;
|
||||
}
|
||||
|
||||
const AVCodecParser ff_dvd_nav_parser = {
|
||||
const FFCodecParser ff_dvd_nav_parser = {
|
||||
PARSER_CODEC_LIST(AV_CODEC_ID_DVD_NAV),
|
||||
.priv_data_size = sizeof(DVDNavParseContext),
|
||||
.parser_init = dvd_nav_parse_init,
|
||||
|
||||
Reference in New Issue
Block a user