mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-09 16:30:03 +01: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:
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "dvaudio.h"
|
||||
#include "parser_internal.h"
|
||||
|
||||
static int dvaudio_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
|
||||
const uint8_t **poutbuf, int *poutbuf_size,
|
||||
@@ -41,6 +42,6 @@ static int dvaudio_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
|
||||
}
|
||||
|
||||
const AVCodecParser ff_dvaudio_parser = {
|
||||
.codec_ids = { AV_CODEC_ID_DVAUDIO },
|
||||
PARSER_CODEC_LIST(AV_CODEC_ID_DVAUDIO),
|
||||
.parser_parse = dvaudio_parse,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user