if (!pic_found) {
for (; cur < buf_size; ++cur) {
- state = (state<<8) | buf[cur];
+ state = (state << 8) | buf[cur];
if (AVS2_ISUNIT(buf[cur])){
- ++cur;
+ cur++;
pic_found = 1;
break;
}
if (pic_found) {
if (!buf_size)
return END_NOT_FOUND;
- for (; cur < buf_size; ++cur) {
+ for (; cur < buf_size; cur++) {
state = (state << 8) | buf[cur];
if ((state & 0xFFFFFF00) == 0x100 && state > AVS2_SLICE_MAX_START_CODE) {
pc->frame_start_found = 0;
return next;
}
-AVCodecParser ff_avs2_parser = {
+const AVCodecParser ff_avs2_parser = {
.codec_ids = { AV_CODEC_ID_AVS2 },
.priv_data_size = sizeof(ParseContext),
.parser_parse = avs2_parse,
.parser_close = ff_parse_close,
- .split = ff_mpeg4video_split,
};