From 75e25f85407ac3a0ca92df342be2bd53724feae3 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 19 May 2012 17:46:41 +0200 Subject: [PATCH] swr: add reversefill_audiodata() Signed-off-by: Michael Niedermayer --- libswresample/swresample.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libswresample/swresample.c b/libswresample/swresample.c index 619c83eb88..245a85b790 100644 --- a/libswresample/swresample.c +++ b/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; ich_count; i++) + in_arg[i]= out->ch[i]; + }else{ + in_arg[0]= out->ch[0]; + } +} + /** * * out may be equal in.