X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fcavs_parser.c;h=690ef54f97b3960be30903b8a6f16c8d0f6666c9;hb=4640da7e58509996ff03b1a0b018ca8f337391c7;hp=be32345af81f43bc331b5a2b1d648d0dc8d811db;hpb=c2553a5585c381971eca55e9e008cf4caee919fe;p=ffmpeg diff --git a/libavcodec/cavs_parser.c b/libavcodec/cavs_parser.c index be32345af81..690ef54f97b 100644 --- a/libavcodec/cavs_parser.c +++ b/libavcodec/cavs_parser.c @@ -30,7 +30,7 @@ /** - * 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 cavs_find_frame_end(ParseContext *pc, const uint8_t *buf, @@ -98,10 +98,9 @@ static int cavsvideo_parse(AVCodecParserContext *s, } AVCodecParser ff_cavsvideo_parser = { - { CODEC_ID_CAVS }, - sizeof(ParseContext1), - NULL, - cavsvideo_parse, - ff_parse1_close, - ff_mpeg4video_split, + .codec_ids = { CODEC_ID_CAVS }, + .priv_data_size = sizeof(ParseContext1), + .parser_parse = cavsvideo_parse, + .parser_close = ff_parse1_close, + .split = ff_mpeg4video_split, };