Lines Matching defs:ret
38 int ret;
181 ret = AVERROR(EINVAL);
190 ret = AVERROR(EINVAL);
198 ret = AVERROR(EINVAL);
205 ret = AVERROR(ENOMEM);
216 ret = AVERROR(ENOMEM);
231 ret = AVERROR(ENOMEM);
238 ret = AVERROR(ENOMEM);
245 ret = AVERROR(ENOMEM);
254 return ret;
290 int ret;
299 ret = ff_audio_data_add_to_fifo(avr->out_fifo, converted, 0,
301 if (ret < 0)
302 return ret;
318 ret = ff_audio_data_copy(output, converted,
321 if (ret < 0)
322 return ret;
339 int ret, direct_output;
363 ret = ff_audio_data_init(&output_buffer, output, out_plane_size,
366 if (ret < 0)
367 return ret;
373 ret = ff_audio_data_init(&input_buffer, input, in_plane_size,
376 if (ret < 0)
377 return ret;
385 ret = ff_audio_data_copy(&output_buffer, current_buffer,
388 if (ret < 0)
389 return ret;
397 ret = ff_audio_data_copy(avr->out_buffer, current_buffer,
399 if (ret < 0)
400 return ret;
406 ret = ff_audio_data_realloc(avr->in_buffer,
408 if (ret < 0)
409 return ret;
411 ret = ff_audio_convert(avr->ac_in, avr->in_buffer,
413 if (ret < 0)
414 return ret;
417 ret = ff_audio_data_copy(avr->in_buffer, current_buffer,
420 if (ret < 0)
421 return ret;
426 ret = ff_audio_mix(avr->am, avr->in_buffer);
427 if (ret < 0)
428 return ret;
450 ret = ff_audio_resample(avr->resample, resample_out,
452 if (ret < 0)
453 return ret;
466 ret = ff_audio_mix(avr->am, current_buffer);
467 if (ret < 0)
468 return ret;
481 ret = ff_audio_convert(avr->ac_out, &output_buffer, current_buffer);
482 if (ret < 0)
483 return ret;
488 ret = ff_audio_data_realloc(avr->out_buffer,
490 if (ret < 0)
491 return ret;
493 ret = ff_audio_convert(avr->ac_out, avr->out_buffer,
495 if (ret < 0)
496 return ret;
529 int ret = 0;
535 ret |= AVERROR_INPUT_CHANGED;
543 ret |= AVERROR_OUTPUT_CHANGED;
547 return ret;
553 int ret;
570 ret = avresample_convert(avr, out_data, out_linesize,
575 if (ret < 0) {
578 return ret;
582 out->nb_samples = ret;
606 int ret, setup = 0;
609 if ((ret = avresample_config(avr, out, in)) < 0)
610 return ret;
611 if ((ret = avresample_open(avr)) < 0)
612 return ret;
616 if ((ret = config_changed(avr, out, in)))
617 return ret;
623 if ((ret = av_frame_get_buffer(out, 0)) < 0) {
626 return ret;