Browse Source

swresample/swresample: Treat mono as planar

This might in some cases improve performance.

Idea from: fbc0b86599
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.4
Michael Niedermayer 11 years ago
parent
commit
05ff1a2c05
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libswresample/swresample.c

+ 2
- 0
libswresample/swresample.c View File

@@ -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…
Cancel
Save