Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
c8ef7621
Commit
c8ef7621
authored
Jun 28, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ChunkFind: fix skipping very large chunks
parent
eaa8fb6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
modules/demux/wav.c
modules/demux/wav.c
+7
-7
No files found.
modules/demux/wav.c
View file @
c8ef7621
...
...
@@ -382,17 +382,17 @@ static int ChunkFind( demux_t *p_demux, const char *fcc, unsigned int *pi_size )
for
(
;;
)
{
in
t
i_size
;
uint32_
t
i_size
;
if
(
stream_Peek
(
p_demux
->
s
,
&
p_peek
,
8
)
<
8
)
{
msg_Err
(
p_demux
,
"cannot peek
()
"
);
msg_Err
(
p_demux
,
"cannot peek"
);
return
VLC_EGENERIC
;
}
i_size
=
GetDWLE
(
p_peek
+
4
);
msg_Dbg
(
p_demux
,
"chunk: fcc=`%4.4s` size=%
d"
,
p_peek
,
i_size
);
msg_Dbg
(
p_demux
,
"chunk: fcc=`%4.4s` size=%
"
PRIu32
,
p_peek
,
i_size
);
if
(
!
memcmp
(
p_peek
,
fcc
,
4
)
)
{
...
...
@@ -403,11 +403,11 @@ static int ChunkFind( demux_t *p_demux, const char *fcc, unsigned int *pi_size )
return
VLC_SUCCESS
;
}
i_size
=
__EVEN
(
i_size
)
+
8
;
if
(
stream_Read
(
p_demux
->
s
,
NULL
,
i_size
)
!=
i_size
)
{
/* Skip chunk */
if
(
stream_Read
(
p_demux
->
s
,
NULL
,
8
)
!=
8
||
stream_Read
(
p_demux
->
s
,
NULL
,
i_size
)
!=
i_size
||
((
i_size
&
1
)
&&
stream_Read
(
p_demux
->
s
,
NULL
,
1
)
!=
1
))
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