Lines Matching defs:size
154 static int opus_decode_redundancy(OpusStreamContext *s, const uint8_t *data, int size)
156 int ret = ff_opus_rc_dec_init(&s->redundancy_rc, data, size);
159 ff_opus_rc_dec_raw_init(&s->redundancy_rc, data + size, size);
174 static int opus_decode_frame(OpusStreamContext *s, const uint8_t *data, int size)
182 ret = ff_opus_rc_dec_init(&s->rc, data, size);
216 if (s->packet.mode == OPUS_MODE_HYBRID && consumed + 37 <= size * 8)
218 else if (s->packet.mode == OPUS_MODE_SILK && consumed + 17 <= size * 8)
227 redundancy_size = size - (consumed + 7) / 8;
228 size -= redundancy_size;
229 if (size < 0) {
230 av_log(s->avctx, AV_LOG_ERROR, "Invalid redundancy frame size.\n");
235 ret = opus_decode_redundancy(s, data + size, redundancy_size);
269 ff_opus_rc_dec_raw_init(&s->rc, data + size, size);
307 ret = opus_decode_redundancy(s, data + size, redundancy_size);
389 int size = s->packet.frame_size[i];
390 int samples = opus_decode_frame(s, buf + s->packet.frame_offset[i], size);
420 int buf_size = avpkt->size;
566 return avpkt->size;