[FFmpeg-cvslog] swr/auto_matrix: treat stereo downmix like stereo.
Michael Niedermayer
git at videolan.org
Sat Sep 8 21:35:48 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Sep 8 21:11:45 2012 +0200| [f8d74cbdc39726965723ff81ccb10a841d5ab8a4] | committer: Michael Niedermayer
swr/auto_matrix: treat stereo downmix like stereo.
Based on code by John Stebbins
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f8d74cbdc39726965723ff81ccb10a841d5ab8a4
---
libswresample/rematrix.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libswresample/rematrix.c b/libswresample/rematrix.c
index a8d5fde..c4c218d 100644
--- a/libswresample/rematrix.c
+++ b/libswresample/rematrix.c
@@ -103,6 +103,8 @@ static int even(int64_t layout){
}
static int clean_layout(SwrContext *s, int64_t layout){
+ if((layout & AV_CH_LAYOUT_STEREO_DOWNMIX) == AV_CH_LAYOUT_STEREO_DOWNMIX)
+ return AV_CH_LAYOUT_STEREO;
return layout;
}
More information about the ffmpeg-cvslog
mailing list