Commit 05ff1a2c authored by Michael Niedermayer's avatar Michael Niedermayer

swresample/swresample: Treat mono as planar

This might in some cases improve performance.

Idea from: fbc0b865Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c62fea75
......@@ -79,6 +79,8 @@ static void set_audiodata_fmt(AudioData *a, enum AVSampleFormat fmt){
a->fmt = fmt;
a->bps = av_get_bytes_per_sample(fmt);
a->planar= av_sample_fmt_is_planar(fmt);
if (a->ch_count == 1)
a->planar = 1;
}
static void free_temp(AudioData *a){
......
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