[FFmpeg-cvslog] swr: add reversefill_audiodata()
Michael Niedermayer
git at videolan.org
Sat May 19 19:28:56 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat May 19 17:46:41 2012 +0200| [75e25f85407ac3a0ca92df342be2bd53724feae3] | committer: Michael Niedermayer
swr: add reversefill_audiodata()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=75e25f85407ac3a0ca92df342be2bd53724feae3
---
libswresample/swresample.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index 619c83e..245a85b 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; i<out->ch_count; i++)
+ in_arg[i]= out->ch[i];
+ }else{
+ in_arg[0]= out->ch[0];
+ }
+}
+
/**
*
* out may be equal in.
More information about the ffmpeg-cvslog
mailing list