Commit 2ce39000 authored by Max Kellermann's avatar Max Kellermann

filter/AutoConvert: modify child_audio_format, not in_audio_format

This prevented using the "volume_normalization" feature with some codecs (e.g. mp3), because the normalization code requires 16 bit samples. If the codec happens to deliver formats other than S16, the AutoConvert filter succeeds to initialize the conversion filter, but the returned input audio format was wrong.
parent bf2c1f3e
ver 0.18.1 (2013/11/??)
* filter:
- autoconvert: fix "volume_normalization" with mp3 files
ver 0.18 (2013/10/31)
* configuration:
......
......@@ -60,8 +60,8 @@ AutoConvertFilter::Open(AudioFormat &in_audio_format, Error &error)
/* open the "real" filter */
const AudioFormat child_audio_format = in_audio_format;
AudioFormat out_audio_format = filter->Open(in_audio_format, error);
AudioFormat child_audio_format = in_audio_format;
AudioFormat out_audio_format = filter->Open(child_audio_format, error);
if (!out_audio_format.IsDefined())
return out_audio_format;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment