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:
@@ -24,6 +24,7 @@
|
||||
#include "bytestream.h"
|
||||
#include "evc.h"
|
||||
#include "evc_parse.h"
|
||||
#include "parser_internal.h"
|
||||
|
||||
#include "libavutil/attributes.h"
|
||||
|
||||
@@ -372,7 +373,7 @@ static av_cold void evc_parser_close(AVCodecParserContext *s)
|
||||
}
|
||||
|
||||
const AVCodecParser ff_evc_parser = {
|
||||
.codec_ids = { AV_CODEC_ID_EVC },
|
||||
PARSER_CODEC_LIST(AV_CODEC_ID_EVC),
|
||||
.priv_data_size = sizeof(EVCParserContext),
|
||||
.parser_parse = evc_parse,
|
||||
.parser_close = evc_parser_close,
|
||||
|
||||
Reference in New Issue
Block a user