|
@@ -184,9 +184,17 @@ static int vc1_split(AVCodecContext *avctx, |
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static int vc1_parse_init(AVCodecParserContext *s) |
|
|
|
|
|
{ |
|
|
|
|
|
VC1ParseContext *vpc = s->priv_data; |
|
|
|
|
|
vpc->v.s.slice_context_count = 1; |
|
|
|
|
|
return 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
AVCodecParser ff_vc1_parser = { |
|
|
AVCodecParser ff_vc1_parser = { |
|
|
.codec_ids = { CODEC_ID_VC1 }, |
|
|
.codec_ids = { CODEC_ID_VC1 }, |
|
|
.priv_data_size = sizeof(VC1ParseContext), |
|
|
.priv_data_size = sizeof(VC1ParseContext), |
|
|
|
|
|
.parser_init = vc1_parse_init, |
|
|
.parser_parse = vc1_parse, |
|
|
.parser_parse = vc1_parse, |
|
|
.parser_close = ff_parse1_close, |
|
|
.parser_close = ff_parse1_close, |
|
|
.split = vc1_split, |
|
|
.split = vc1_split, |
|
|