diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2011-09-17 01:18:53 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2011-09-17 01:36:00 +0200 |
commit | db79d0417396edc7ed0fc4fa438daa9526306fdf (patch) | |
tree | 6ee227e3a27e3d85f9af97568bfa987536ec0574 | |
parent | b6c04b682176e72125b747b5982bcc4dea1f34c5 (diff) | |
download | ffmpeg-db79d0417396edc7ed0fc4fa438daa9526306fdf.tar.gz |
af_aresample: do not request a buffer with AV_PERM_REUSE2 permissions in filter_samples()
That was pointless. Simplify.
-rw-r--r-- | libavfilter/af_aresample.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavfilter/af_aresample.c b/libavfilter/af_aresample.c index 04188c854d..9af50cf208 100644 --- a/libavfilter/af_aresample.c +++ b/libavfilter/af_aresample.c @@ -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; |