[FFmpeg-cvslog] af_aresample: do not request a buffer with AV_PERM_REUSE2 permissions in filter_samples( )
Stefano Sabatini
git at videolan.org
Sat Sep 17 01:35:53 CEST 2011
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sat Sep 17 01:18:53 2011 +0200| [db79d0417396edc7ed0fc4fa438daa9526306fdf] | committer: Stefano Sabatini
af_aresample: do not request a buffer with AV_PERM_REUSE2 permissions in filter_samples()
That was pointless. Simplify.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=db79d0417396edc7ed0fc4fa438daa9526306fdf
---
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 04188c8..9af50cf 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;
More information about the ffmpeg-cvslog
mailing list