X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fvc1_parser.c;h=5e1bd2cd5f3418106071e2eda4a80b7311adde43;hb=f41a6c8f3aeb51332bb359038cb504d3fb562a52;hp=99023db492c75c605e57f3d58ebc95804e76a116;hpb=f0a7b67a356def037d26f9460b22c86d82be2b89;p=ffmpeg diff --git a/libavcodec/vc1_parser.c b/libavcodec/vc1_parser.c index 99023db492c..5e1bd2cd5f3 100644 --- a/libavcodec/vc1_parser.c +++ b/libavcodec/vc1_parser.c @@ -96,7 +96,7 @@ static void vc1_extract_headers(AVCodecParserContext *s, AVCodecContext *avctx, } /** - * finds the end of the current frame in the bitstream. + * Find the end of the current frame in the bitstream. * @return the position of the first byte of the next frame, or -1 */ static int vc1_find_frame_end(ParseContext *pc, const uint8_t *buf, @@ -185,10 +185,9 @@ static int vc1_split(AVCodecContext *avctx, } AVCodecParser ff_vc1_parser = { - { CODEC_ID_VC1 }, - sizeof(VC1ParseContext), - NULL, - vc1_parse, - ff_parse1_close, - vc1_split, + .codec_ids = { CODEC_ID_VC1 }, + .priv_data_size = sizeof(VC1ParseContext), + .parser_parse = vc1_parse, + .parser_close = ff_parse1_close, + .split = vc1_split, };