[vlc-devel] commit: Fixes the output i_bitspersample set by the audio_format filter. ( Eric Petit )
git version control
git at videolan.org
Sun Aug 17 19:31:23 CEST 2008
vlc | branch: master | Eric Petit <eric.petit at lapsus.org> | Sun Aug 17 19:30:36 2008 +0200| [fde62dfddfd475e6b4b6496cb01822cf708853e1] | committer: Eric Petit
Fixes the output i_bitspersample set by the audio_format filter.
It was always set equal to the input's i_bitspersample, which caused
crashes in some transcoding sessions.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fde62dfddfd475e6b4b6496cb01822cf708853e1
---
modules/audio_filter/format.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/audio_filter/format.c b/modules/audio_filter/format.c
index 2af8f0d..b90f109 100644
--- a/modules/audio_filter/format.c
+++ b/modules/audio_filter/format.c
@@ -229,11 +229,14 @@ static int Open( vlc_object_t *p_this )
p_filter->pf_audio_filter = ConvertTable[i].pf_convert;
p_filter->fmt_out.audio = p_filter->fmt_in.audio;
p_filter->fmt_out.audio.i_format = p_filter->fmt_out.i_codec;
+ p_filter->fmt_out.audio.i_bitspersample =
+ aout_BitsPerSample( p_filter->fmt_out.i_codec );
- msg_Dbg( p_this, "%4.4s->%4.4s, bits per sample: %i",
+ msg_Dbg( p_this, "%4.4s->%4.4s, bits per sample: %i->%i",
(char *)&p_filter->fmt_in.i_codec,
(char *)&p_filter->fmt_out.i_codec,
- p_filter->fmt_in.audio.i_bitspersample );
+ p_filter->fmt_in.audio.i_bitspersample,
+ p_filter->fmt_out.audio.i_bitspersample );
return VLC_SUCCESS;
}
More information about the vlc-devel
mailing list