]> git.sesse.net Git - vlc/commitdiff
Don't ignore DTS in wav.
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 25 Jun 2009 12:58:48 +0000 (14:58 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 25 Jun 2009 12:58:48 +0000 (14:58 +0200)
modules/demux/mpeg/es.c

index 4792781a67b50919c740c7da91c3ca809ce200d0..62a419a11c0bf8e82716417a3ecf87f16ab0bf51 100644 (file)
@@ -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;