From 14758e3211d34a97c42b07acae117ce5627d7f57 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Thu, 29 Nov 2012 14:53:04 -0500 Subject: lavr: temporarily store custom matrix in AVAudioResampleContext This allows AudioMix to be treated the same way as other conversion contexts and removes the requirement to allocate it at the same time as the AVAudioResampleContext. The current matrix get/set functions are split between the public interface and AudioMix private functions. --- libavresample/options.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'libavresample/options.c') diff --git a/libavresample/options.c b/libavresample/options.c index 8f643700cb..824f5e3bc3 100644 --- a/libavresample/options.c +++ b/libavresample/options.c @@ -84,13 +84,6 @@ AVAudioResampleContext *avresample_alloc_context(void) avr->av_class = &av_resample_context_class; av_opt_set_defaults(avr); - avr->am = av_mallocz(sizeof(*avr->am)); - if (!avr->am) { - av_free(avr); - return NULL; - } - avr->am->avr = avr; - return avr; } -- cgit v1.2.3