Commit c262ddb8 authored by Nicolas George's avatar Nicolas George

lavfi: set sample_rate in the default allocator.

parent 9d89d1d4
...@@ -59,6 +59,8 @@ AVFilterBufferRef *ff_default_get_audio_buffer(AVFilterLink *link, int perms, ...@@ -59,6 +59,8 @@ AVFilterBufferRef *ff_default_get_audio_buffer(AVFilterLink *link, int perms,
if (!samplesref) if (!samplesref)
goto fail; goto fail;
samplesref->audio->sample_rate = link->sample_rate;
av_freep(&data); av_freep(&data);
fail: fail:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment