mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:21:11 +01: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue