[vlc-devel] commit: SMF: channels data (stereo) and dummy rate to not confuse codecs ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Aug 17 09:56:52 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Aug 17 10:59:03 2008 +0300| [3d94fe8735a55c06150827d1cd9992cd330dbc59] | committer: Rémi Denis-Courmont 

SMF: channels data (stereo) and dummy rate to not confuse codecs

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

 modules/demux/smf.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/demux/smf.c b/modules/demux/smf.c
index baaf5ae..2785cec 100644
--- a/modules/demux/smf.c
+++ b/modules/demux/smf.c
@@ -231,6 +231,10 @@ static int Open (vlc_object_t * p_this)
 
     es_format_t  fmt;
     es_format_Init (&fmt, AUDIO_ES, VLC_FOURCC('M', 'I', 'D', 'I'));
+    fmt.audio.i_channels = 2;
+    fmt.audio.i_original_channels = fmt.audio.i_physical_channels =
+        AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT;
+    fmt.audio.i_rate = 44100; /* dummy value */
     p_sys->es = es_out_Add (p_demux->out, &fmt);
 
     return VLC_SUCCESS;




More information about the vlc-devel mailing list