mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avcodec/parsers: Add macro to set list of codec ids
The current code relies on AV_CODEC_ID_NONE being zero, so that unused codec ids are set to their proper value. This commit adds a macro to set unset ids to AV_CODEC_ID_NONE. (The actual rationale for this macro is to simplify the transition to making the private fields that are currently public in avcodec.h really private.) Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
12f7a7724d
commit
e9fe30ccd1
67 changed files with 174 additions and 72 deletions
|
|
@ -22,6 +22,7 @@
|
|||
*/
|
||||
|
||||
#include "parser.h"
|
||||
#include "parser_internal.h"
|
||||
|
||||
typedef struct SiprParserContext{
|
||||
ParseContext pc;
|
||||
|
|
@ -67,7 +68,7 @@ static int sipr_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
|
|||
}
|
||||
|
||||
const AVCodecParser ff_sipr_parser = {
|
||||
.codec_ids = { AV_CODEC_ID_SIPR },
|
||||
PARSER_CODEC_LIST(AV_CODEC_ID_SIPR),
|
||||
.priv_data_size = sizeof(SiprParserContext),
|
||||
.parser_parse = sipr_parse,
|
||||
.parser_close = ff_parse_close,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue