if (aresample->outsamplesref)
avfilter_unref_buffer(aresample->outsamplesref);
- aresample->outsamplesref = avfilter_get_audio_buffer(outlink,
- AV_PERM_WRITE | AV_PERM_REUSE2,
- requested_out_nb_samples);
-
+ aresample->outsamplesref =
+ avfilter_get_audio_buffer(outlink, AV_PERM_WRITE, requested_out_nb_samples);
avfilter_copy_buffer_ref_props(aresample->outsamplesref, insamplesref);
aresample->outsamplesref->pts =
insamplesref->pts / inlink->sample_rate * outlink->sample_rate;