[vlc-devel] commit: DTS: fix mono and dual-mono samples playback (Jean-Baptiste Kempf )

git version control git at videolan.org
Tue Nov 24 23:00:15 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Nov 24 22:42:39 2009 +0100| [ffd4a01ebf0d759ebaac137a45730e960e48c4a1] | committer: Jean-Baptiste Kempf 

DTS: fix mono and dual-mono samples playback

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

 modules/codec/dts.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/codec/dts.c b/modules/codec/dts.c
index d1fcc4b..4378a50 100644
--- a/modules/codec/dts.c
+++ b/modules/codec/dts.c
@@ -665,10 +665,12 @@ static int SyncInfo( const uint8_t *p_buf,
     {
         case 0x0:
             /* Mono */
+            *pi_channels = 1;
             *pi_channels_conf = AOUT_CHAN_CENTER;
             break;
         case 0x1:
             /* Dual-mono = stereo + dual-mono */
+            *pi_channels = 2;
             *pi_channels_conf = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT |
                            AOUT_CHAN_DUALMONO;
             break;




More information about the vlc-devel mailing list