Skip to content
Snippets Groups Projects
Commit 42b5688d authored by Justin Ruggles's avatar Justin Ruggles Committed by Luca Barbato
Browse files

lavr: fix segfault due to overlooked change needed in 14758e32


Signed-off-by: default avatarLuca Barbato <lu_zero@gentoo.org>
parent 6f40e9f0
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ int avresample_open(AVAudioResampleContext *avr) ...@@ -49,7 +49,7 @@ int avresample_open(AVAudioResampleContext *avr)
avr->resample_channels = FFMIN(avr->in_channels, avr->out_channels); avr->resample_channels = FFMIN(avr->in_channels, avr->out_channels);
avr->downmix_needed = 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->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->in_channel_layout != avr->out_channel_layout));
avr->mixing_needed = avr->downmix_needed || avr->upmix_needed; avr->mixing_needed = avr->downmix_needed || avr->upmix_needed;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment