]> git.sesse.net Git - vlc/commitdiff
Fixed output format of audio format.c convertor.
authorLaurent Aimar <fenrir@videolan.org>
Thu, 13 May 2010 14:56:43 +0000 (16:56 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 13 May 2010 15:00:04 +0000 (17:00 +0200)
It closes #3620.

modules/audio_filter/converter/format.c

index fc13add90e557e22b710541228f42c2806beec91..bef50b2248170022dc48f7f25d901f9bb1d2002d 100644 (file)
@@ -146,7 +146,7 @@ static int Open(vlc_object_t *object)
 end:
     dst->audio = src->audio;
     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",
             (char *)&src->i_codec, (char *)&dst->i_codec,