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
e5fbc2d1
Commit
e5fbc2d1
authored
Mar 21, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
voc: fix skipping of unknown headers (fixes #6437)
(cherry picked from commit
ea068351
)
parent
bdc6ec2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
modules/demux/voc.c
modules/demux/voc.c
+9
-8
No files found.
modules/demux/voc.c
View file @
e5fbc2d1
...
@@ -421,17 +421,18 @@ static int Demux( demux_t *p_demux )
...
@@ -421,17 +421,18 @@ static int Demux( demux_t *p_demux )
{
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
block_t
*
p_block
;
block_t
*
p_block
;
int64_t
i_offset
,
i
;
int64_t
i
;
i_offset
=
stream_Tell
(
p_demux
->
s
);
while
(
(
i_offset
>=
p_sys
->
i_block_end
)
&&
(
p_sys
->
i_silence_countdown
==
0
)
)
if
(
ReadBlockHeader
(
p_demux
)
!=
VLC_SUCCESS
)
return
0
;
if
(
p_sys
->
i_silence_countdown
==
0
)
if
(
p_sys
->
i_silence_countdown
==
0
)
{
{
int64_t
i_offset
=
stream_Tell
(
p_demux
->
s
);
if
(
i_offset
>=
p_sys
->
i_block_end
)
{
if
(
ReadBlockHeader
(
p_demux
)
!=
VLC_SUCCESS
)
return
0
;
return
1
;
}
i
=
(
p_sys
->
i_block_end
-
i_offset
)
i
=
(
p_sys
->
i_block_end
-
i_offset
)
/
p_sys
->
fmt
.
audio
.
i_bytes_per_frame
;
/
p_sys
->
fmt
.
audio
.
i_bytes_per_frame
;
if
(
i
>
SAMPLES_BUFFER
)
if
(
i
>
SAMPLES_BUFFER
)
...
...
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