lavr: fix segfault due to overlooked change needed in 14758e3
authorJustin Ruggles <justin.ruggles@gmail.com>
Tue, 11 Dec 2012 20:56:17 +0000 (15:56 -0500)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 12 Dec 2012 08:09:00 +0000 (09:09 +0100)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavresample/utils.c

index 8245e6a..fe2e1c2 100644 (file)
@@ -49,7 +49,7 @@ int avresample_open(AVAudioResampleContext *avr)
     avr->resample_channels = FFMIN(avr->in_channels, avr->out_channels);
     avr->downmix_needed    = avr->in_channels  > avr->out_channels;
     avr->upmix_needed      = avr->out_channels > avr->in_channels ||
-                             (!avr->downmix_needed && (avr->am->matrix ||
+                             (!avr->downmix_needed && (avr->mix_matrix ||
                               avr->in_channel_layout != avr->out_channel_layout));
     avr->mixing_needed     = avr->downmix_needed || avr->upmix_needed;