lavfi: set sample_rate in the default allocator.
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user