[FFmpeg-devel] [PATCH 1/2] lavfi: set sample_rate in the default allocator.

Nicolas George nicolas.george at normalesup.org
Thu Sep 13 17:19:56 CEST 2012


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavfilter/audio.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/audio.c b/libavfilter/audio.c
index e7306b1..ae78ed8 100644
--- a/libavfilter/audio.c
+++ b/libavfilter/audio.c
@@ -59,6 +59,8 @@ AVFilterBufferRef *ff_default_get_audio_buffer(AVFilterLink *link, int perms,
     if (!samplesref)
         goto fail;
 
+    samplesref->audio->sample_rate = link->sample_rate;
+
     av_freep(&data);
 
 fail:
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list