swr: add reversefill_audiodata()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/30/merge
Michael Niedermayer 13 years ago
parent 5027e3daf7
commit 75e25f8540
  1. 10
      libswresample/swresample.c

@ -384,6 +384,16 @@ static void fill_audiodata(AudioData *out, uint8_t *in_arg [SWR_CH_MAX]){
} }
} }
static void reversefill_audiodata(AudioData *out, uint8_t *in_arg [SWR_CH_MAX]){
int i;
if(out->planar){
for(i=0; i<out->ch_count; i++)
in_arg[i]= out->ch[i];
}else{
in_arg[0]= out->ch[0];
}
}
/** /**
* *
* out may be equal in. * out may be equal in.

Loading…
Cancel
Save