Commit f10aeab6 authored by Michael Niedermayer's avatar Michael Niedermayer

swr: audioconvert: consider mono to be planar

This way it will be handled by the planar==planar SIMD
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 72ae583b
......@@ -124,6 +124,12 @@ AudioConvert *swri_audio_convert_alloc(enum AVSampleFormat out_fmt,
ctx = av_mallocz(sizeof(*ctx));
if (!ctx)
return NULL;
if(channels == 1){
in_fmt = av_get_planar_sample_fmt( in_fmt);
out_fmt = av_get_planar_sample_fmt(out_fmt);
}
ctx->channels = channels;
ctx->conv_f = f;
ctx->ch_map = ch_map;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment