[vlc-commits] commit: Fixed output format of audio format.c convertor. (Laurent Aimar )

git at videolan.org git at videolan.org
Thu May 13 17:00:20 CEST 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu May 13 16:56:43 2010 +0200| [fd49cf22125e2c68e4055b8edef89a4661f12d30] | committer: Laurent Aimar 

Fixed output format of audio format.c convertor.

It closes #3620.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fd49cf22125e2c68e4055b8edef89a4661f12d30
---

 modules/audio_filter/converter/format.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/audio_filter/converter/format.c b/modules/audio_filter/converter/format.c
index fc13add..bef50b2 100644
--- a/modules/audio_filter/converter/format.c
+++ b/modules/audio_filter/converter/format.c
@@ -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,



More information about the vlc-commits mailing list