mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
af_aresample: do not request a buffer with AV_PERM_REUSE2 permissions in filter_samples()
That was pointless. Simplify.
This commit is contained in:
parent
b6c04b6821
commit
db79d04173
@ -268,10 +268,8 @@ static void filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamplesref
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user