aboutsummaryrefslogtreecommitdiffstats
path: root/libavresample/audio_convert.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2014-07-18 17:39:01 -0400
committerLuca Barbato <lu_zero@gentoo.org>2014-08-03 23:13:26 +0200
commitfbc0b8659967ea54a8472b5f795270d38bb085dd (patch)
treecef4d2a848b8e6e27e20479eb51e82fb866771c0 /libavresample/audio_convert.c
parent9f17685dfb70a73823aca16ad246ee3b831d1de8 (diff)
downloadffmpeg-fbc0b8659967ea54a8472b5f795270d38bb085dd.tar.gz
lavr: Do not change the sample format for mono audio
This treats mono as planar internally within libavresample rather than changing the sample format. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavresample/audio_convert.c')
-rw-r--r--libavresample/audio_convert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavresample/audio_convert.c b/libavresample/audio_convert.c
index 27add23bb0..11bbbbee49 100644
--- a/libavresample/audio_convert.c
+++ b/libavresample/audio_convert.c
@@ -288,8 +288,8 @@ AudioConvert *ff_audio_convert_alloc(AVAudioResampleContext *avr,
return ac;
}
- in_planar = av_sample_fmt_is_planar(in_fmt);
- out_planar = av_sample_fmt_is_planar(out_fmt);
+ in_planar = ff_sample_fmt_is_planar(in_fmt, channels);
+ out_planar = ff_sample_fmt_is_planar(out_fmt, channels);
if (in_planar == out_planar) {
ac->func_type = CONV_FUNC_TYPE_FLAT;