You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02: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:
@@ -26,6 +26,7 @@
|
||||
|
||||
#include "parser.h"
|
||||
#include "dnxhddata.h"
|
||||
#include "parser_internal.h"
|
||||
|
||||
typedef struct {
|
||||
ParseContext pc;
|
||||
@@ -139,7 +140,7 @@ static int dnxhd_parse(AVCodecParserContext *s,
|
||||
}
|
||||
|
||||
const AVCodecParser ff_dnxhd_parser = {
|
||||
.codec_ids = { AV_CODEC_ID_DNXHD },
|
||||
PARSER_CODEC_LIST(AV_CODEC_ID_DNXHD),
|
||||
.priv_data_size = sizeof(DNXHDParserContext),
|
||||
.parser_parse = dnxhd_parse,
|
||||
.parser_close = ff_parse_close,
|
||||
|
||||
Reference in New Issue
Block a user