Lines Matching refs:buf_index
70 int buf_index, int next_avc)
74 buf_index = avpriv_find_start_code(buf + buf_index, buf + next_avc + 1, &state) - buf - 1;
76 return FFMIN(buf_index, buf_size);
263 int buf_index, next_avc;
287 buf_index = 0;
293 if (buf_index >= next_avc) {
294 nalsize = get_nalsize(p->nal_length_size, buf, buf_size, &buf_index, avctx);
297 next_avc = buf_index + nalsize;
299 buf_index = find_start_code(buf, buf_size, buf_index, next_avc);
300 if (buf_index >= buf_size)
302 if (buf_index >= next_avc)
305 src_length = next_avc - buf_index;
307 state = buf[buf_index];
324 consumed = ff_h2645_extract_rbsp(buf + buf_index, src_length, &rbsp, &nal, 1);
328 buf_index += consumed;