Lines Matching defs:buf_size
313 static int setup_partitions(VP8Context *s, const uint8_t *buf, int buf_size)
322 buf_size -= 3 * (s->num_coeff_partitions - 1);
323 if (buf_size < 0)
328 if (buf_size - size < 0)
336 buf_size -= size;
339 s->coeff_partition_size[i] = buf_size;
340 ff_vp56_init_range_decoder(&s->coeff_partition[i], buf, buf_size);
549 static int vp7_decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_size)
558 if (buf_size < 4) {
572 if (buf_size < 4 - s->profile + part1_size) {
573 av_log(s->avctx, AV_LOG_ERROR, "Buffer size %d is too small, needed : %d\n", buf_size, 4 - s->profile + part1_size);
578 buf_size -= 4 - s->profile;
586 buf_size -= part1_size;
636 ret = ff_vp56_init_range_decoder(&s->coeff_partition[0], buf, buf_size);
713 static int vp8_decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_size)
720 if (buf_size < 3) {
721 av_log(s->avctx, AV_LOG_ERROR, "Insufficent data (%d) for header\n", buf_size);
730 buf_size -= 3;
744 if (header_size > buf_size - 7 * s->keyframe) {
760 buf_size -= 7;
781 buf_size -= header_size;
805 if (setup_partitions(s, buf, buf_size)) {