lavfi: set sample_rate in the default allocator.
authorNicolas George <nicolas.george@normalesup.org>
Thu, 13 Sep 2012 15:13:10 +0000 (17:13 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Thu, 13 Sep 2012 18:09:53 +0000 (20:09 +0200)
libavfilter/audio.c

index e7306b1..ae78ed8 100644 (file)
@@ -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: