lavc: use designated initialisers for parsers.

This commit is contained in:
Anton Khirnov
2011-11-02 09:34:41 +01:00
parent da24963725
commit 5511ad14fe
23 changed files with 106 additions and 122 deletions

View File

@@ -84,9 +84,9 @@ retry:
}
AVCodecParser ff_pnm_parser = {
{ CODEC_ID_PGM, CODEC_ID_PGMYUV, CODEC_ID_PPM, CODEC_ID_PBM, CODEC_ID_PAM},
sizeof(ParseContext),
NULL,
pnm_parse,
ff_parse_close,
.codec_ids = { CODEC_ID_PGM, CODEC_ID_PGMYUV, CODEC_ID_PPM,
CODEC_ID_PBM, CODEC_ID_PAM },
.priv_data_size = sizeof(ParseContext),
.parser_parse = pnm_parse,
.parser_close = ff_parse_close,
};