|
|
|
@ -313,8 +313,8 @@ int attribute_align_arg avresample_convert(AVAudioResampleContext *avr, |
|
|
|
|
if (ret < 0) |
|
|
|
|
return ret; |
|
|
|
|
av_dlog(avr, "[convert] %s to in_buffer\n", current_buffer->name); |
|
|
|
|
ret = ff_audio_convert(avr->ac_in, avr->in_buffer, current_buffer, |
|
|
|
|
current_buffer->nb_samples); |
|
|
|
|
ret = ff_audio_convert(avr->ac_in, avr->in_buffer, |
|
|
|
|
current_buffer); |
|
|
|
|
if (ret < 0) |
|
|
|
|
return ret; |
|
|
|
|
} else { |
|
|
|
@ -381,8 +381,7 @@ int attribute_align_arg avresample_convert(AVAudioResampleContext *avr, |
|
|
|
|
if (direct_output && out_samples >= current_buffer->nb_samples) { |
|
|
|
|
/* convert directly to output */ |
|
|
|
|
av_dlog(avr, "[convert] %s to output\n", current_buffer->name); |
|
|
|
|
ret = ff_audio_convert(avr->ac_out, &output_buffer, current_buffer, |
|
|
|
|
current_buffer->nb_samples); |
|
|
|
|
ret = ff_audio_convert(avr->ac_out, &output_buffer, current_buffer); |
|
|
|
|
if (ret < 0) |
|
|
|
|
return ret; |
|
|
|
|
|
|
|
|
@ -395,7 +394,7 @@ int attribute_align_arg avresample_convert(AVAudioResampleContext *avr, |
|
|
|
|
return ret; |
|
|
|
|
av_dlog(avr, "[convert] %s to out_buffer\n", current_buffer->name); |
|
|
|
|
ret = ff_audio_convert(avr->ac_out, avr->out_buffer, |
|
|
|
|
current_buffer, current_buffer->nb_samples); |
|
|
|
|
current_buffer); |
|
|
|
|
if (ret < 0) |
|
|
|
|
return ret; |
|
|
|
|
current_buffer = avr->out_buffer; |
|
|
|
|