[vlc-devel] commit: Don't ignore DTS in wav. (Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Jun 25 15:00:33 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jun 25 14:58:48 2009 +0200| [dbb1349919ae066bce67a3ae61637431b578b919] | committer: Jean-Baptiste Kempf 

Don't ignore DTS in wav.

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

 modules/demux/mpeg/es.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/demux/mpeg/es.c b/modules/demux/mpeg/es.c
index 4792781..62a419a 100644
--- a/modules/demux/mpeg/es.c
+++ b/modules/demux/mpeg/es.c
@@ -618,8 +618,9 @@ static int WavSkipHeader( demux_t *p_demux, int *pi_skip )
     if( stream_Peek( p_demux->s, &p_peek, i_peek ) != i_peek )
         return VLC_EGENERIC;
     int i_format = GetWLE( p_peek + i_peek - i_len - 8 /* wFormatTag */ );
-    if( i_format != WAVE_FORMAT_PCM && /* WAVE_FORMAT_PCM */
-        i_format != WAVE_FORMAT_A52 /* WAVE_FORMAT_A52 */ )
+    if( i_format != WAVE_FORMAT_PCM &&
+        i_format != WAVE_FORMAT_A52 &&
+        i_format != WAVE_FORMAT_DTS )
         return VLC_EGENERIC;
     if( GetWLE( p_peek + i_peek - i_len - 6 /* nChannels */ ) != 2 )
         return VLC_EGENERIC;




More information about the vlc-devel mailing list