Lines Matching refs:buf_pos
65 int buf_pos, buf_size; member
186 if (data->buf_size - data->buf_pos < data->au_headers[data->cur_au_index].size) { in aac_parse_packet()
194 memcpy(pkt->data, &data->buf[data->buf_pos], data->au_headers[data->cur_au_index].size); in aac_parse_packet()
195 data->buf_pos += data->au_headers[data->cur_au_index].size; in aac_parse_packet()
200 data->buf_pos = 0; in aac_parse_packet()
217 if (!data->buf_pos) { in aac_parse_packet()
229 data->buf_pos + len > MAX_AAC_HBR_FRAME_SIZE) { in aac_parse_packet()
230 data->buf_pos = 0; in aac_parse_packet()
236 memcpy(&data->buf[data->buf_pos], buf, len); in aac_parse_packet()
237 data->buf_pos += len; in aac_parse_packet()
242 if (data->buf_pos != data->buf_size) { in aac_parse_packet()
243 data->buf_pos = 0; in aac_parse_packet()
248 data->buf_pos = 0; in aac_parse_packet()
278 data->buf_pos = 0; in aac_parse_packet()