[FFmpeg-cvslog] lavfi: set sample_rate in the default allocator.

Nicolas George git at videolan.org
Thu Sep 13 20:18:39 CEST 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Thu Sep 13 17:13:10 2012 +0200| [c262ddb8c5e2060b76a84e70a7e46fa134c1799a] | committer: Nicolas George

lavfi: set sample_rate in the default allocator.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c262ddb8c5e2060b76a84e70a7e46fa134c1799a
---

 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:



More information about the ffmpeg-cvslog mailing list