Browse code

lavfi: set sample_rate in the default allocator.

Nicolas George authored on 2012/09/14 00:13:10
Showing 1 changed files
... ...
@@ -59,6 +59,8 @@ AVFilterBufferRef *ff_default_get_audio_buffer(AVFilterLink *link, int perms,
59 59
     if (!samplesref)
60 60
         goto fail;
61 61
 
62
+    samplesref->audio->sample_rate = link->sample_rate;
63
+
62 64
     av_freep(&data);
63 65
 
64 66
 fail: