Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
483cdd60
Commit
483cdd60
authored
Jun 25, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Decode correctly some ac3 in wav files.
parent
7c224751
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/demux/mpeg/es.c
modules/demux/mpeg/es.c
+4
-2
No files found.
modules/demux/mpeg/es.c
View file @
483cdd60
...
...
@@ -34,6 +34,7 @@
#include <vlc_plugin.h>
#include <vlc_demux.h>
#include <vlc_codec.h>
#include <vlc_codecs.h>
#include <vlc_input.h>
#include "../../codec/a52.h"
...
...
@@ -616,8 +617,9 @@ static int WavSkipHeader( demux_t *p_demux, int *pi_skip )
i_peek
+=
i_len
+
8
;
if
(
stream_Peek
(
p_demux
->
s
,
&
p_peek
,
i_peek
)
!=
i_peek
)
return
VLC_EGENERIC
;
if
(
GetWLE
(
p_peek
+
i_peek
-
i_len
-
8
/* wFormatTag */
)
!=
1
/* WAVE_FORMAT_PCM */
)
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 */
)
return
VLC_EGENERIC
;
if
(
GetWLE
(
p_peek
+
i_peek
-
i_len
-
6
/* nChannels */
)
!=
2
)
return
VLC_EGENERIC
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment