[vlc-commits] transcode: set audio.i_format for filters (fix #5244)
Rémi Denis-Courmont
git at videolan.org
Thu Aug 25 21:00:59 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Aug 25 22:00:17 2011 +0300| [b01ceae124743093d3784a0805c9fa0e404e4c9e] | committer: Rémi Denis-Courmont
transcode: set audio.i_format for filters (fix #5244)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b01ceae124743093d3784a0805c9fa0e404e4c9e
---
modules/stream_out/transcode/audio.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/stream_out/transcode/audio.c b/modules/stream_out/transcode/audio.c
index 3537f86..f2d2ea1 100644
--- a/modules/stream_out/transcode/audio.c
+++ b/modules/stream_out/transcode/audio.c
@@ -234,6 +234,8 @@ int transcode_audio_new( sout_stream_t *p_stream,
msg_Err( p_stream, "cannot find audio decoder" );
return VLC_EGENERIC;
}
+ /* decoders don't set audio.i_format, but audio filters use it */
+ id->p_decoder->fmt_out.audio.i_format = id->p_decoder->fmt_out.i_codec;
id->p_decoder->fmt_out.audio.i_bitspersample =
aout_BitsPerSample( id->p_decoder->fmt_out.i_codec );
fmt_last = id->p_decoder->fmt_out;
More information about the vlc-commits
mailing list