diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-09-13 17:13:10 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-09-13 20:09:53 +0200 |
commit | c262ddb8c5e2060b76a84e70a7e46fa134c1799a (patch) | |
tree | db9c75fd3bed5d47325ff507ad36ee7085f95148 /libavfilter/audio.c | |
parent | 9d89d1d484cde14768ea7eb50bf712c474bd624c (diff) | |
download | ffmpeg-c262ddb8c5e2060b76a84e70a7e46fa134c1799a.tar.gz |
lavfi: set sample_rate in the default allocator.
Diffstat (limited to 'libavfilter/audio.c')
-rw-r--r-- | libavfilter/audio.c | 2 |
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: |