lavfi: set sample_rate in the default allocator.
[ffmpeg.git] / libavfilter / audio.c
index e7306b134bfb5afe4ccb69ecb7c4dc70541203a2..ae78ed8a5e283d1cbc7181ff9f65373f6ebdcbed 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: