Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
382f53fa
Commit
382f53fa
authored
Jul 10, 2017
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Jul 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux:aiff: init the ES to "twos" directly
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
b52f227e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
modules/demux/aiff.c
modules/demux/aiff.c
+2
-3
No files found.
modules/demux/aiff.c
View file @
382f53fa
...
...
@@ -119,7 +119,7 @@ static int Open( vlc_object_t *p_this )
/* Fill p_demux field */
DEMUX_INIT_COMMON
();
p_sys
=
p_demux
->
p_sys
;
es_format_Init
(
&
p_sys
->
fmt
,
AUDIO_ES
,
0
);
es_format_Init
(
&
p_sys
->
fmt
,
AUDIO_ES
,
VLC_FOURCC
(
't'
,
'w'
,
'o'
,
's'
)
);
p_sys
->
i_time
=
0
;
p_sys
->
i_ssnd_pos
=
-
1
;
...
...
@@ -139,7 +139,6 @@ static int Open( vlc_object_t *p_this )
if
(
vlc_stream_Peek
(
p_demux
->
s
,
&
p_peek
,
18
+
8
)
<
18
+
8
)
goto
error
;
es_format_Init
(
&
p_sys
->
fmt
,
AUDIO_ES
,
VLC_FOURCC
(
't'
,
'w'
,
'o'
,
's'
)
);
p_sys
->
fmt
.
audio
.
i_channels
=
GetWBE
(
&
p_peek
[
8
]
);
p_sys
->
fmt
.
audio
.
i_bitspersample
=
GetWBE
(
&
p_peek
[
14
]
);
p_sys
->
fmt
.
audio
.
i_rate
=
GetF80BE
(
&
p_peek
[
16
]
);
...
...
@@ -161,7 +160,7 @@ static int Open( vlc_object_t *p_this )
msg_Dbg
(
p_demux
,
"SSND: (offset=%d blocksize=%d)"
,
p_sys
->
i_ssnd_offset
,
p_sys
->
i_ssnd_blocksize
);
}
if
(
p_sys
->
i_ssnd_pos
>=
12
&&
p_sys
->
fmt
.
i_cat
==
AUDIO_ES
)
if
(
p_sys
->
i_ssnd_pos
>=
12
&&
p_sys
->
fmt
.
audio
.
i_channels
!=
0
)
{
/* We have found the 2 needed chunks */
break
;
...
...
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