mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
swresample/swresample: Treat mono as planar
This might in some cases improve performance.
Idea from: fbc0b86599
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c62fea7574
commit
05ff1a2c05
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user