Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-09-13 19:13:10 +0400
committerNicolas George <nicolas.george@normalesup.org>2012-09-13 22:09:53 +0400
commitc262ddb8c5e2060b76a84e70a7e46fa134c1799a (patch)
treedb9c75fd3bed5d47325ff507ad36ee7085f95148 /libavfilter/audio.c
parent9d89d1d484cde14768ea7eb50bf712c474bd624c (diff)
lavfi: set sample_rate in the default allocator.
Diffstat (limited to 'libavfilter/audio.c')
-rw-r--r--libavfilter/audio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/audio.c b/libavfilter/audio.c
index e7306b134b..ae78ed8a5e 100644
--- a/libavfilter/audio.c
+++ b/libavfilter/audio.c
@@ -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: