Commit 8a191173 authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

Fixed output format of audio format.c convertor.

It closes #3620.
(cherry picked from commit fd49cf22)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c3182cc6
...@@ -146,7 +146,7 @@ static int Open(vlc_object_t *object) ...@@ -146,7 +146,7 @@ static int Open(vlc_object_t *object)
end: end:
dst->audio = src->audio; dst->audio = src->audio;
dst->audio.i_format = dst->i_codec; dst->audio.i_format = dst->i_codec;
dst->audio.i_bitspersample = aout_BitsPerSample(dst->i_codec); aout_FormatPrepare(&dst->audio);
msg_Dbg(filter, "%4.4s->%4.4s, bits per sample: %i->%i", msg_Dbg(filter, "%4.4s->%4.4s, bits per sample: %i->%i",
(char *)&src->i_codec, (char *)&dst->i_codec, (char *)&src->i_codec, (char *)&dst->i_codec,
......
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