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
08c53179
Commit
08c53179
authored
Aug 26, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: avi: Ignore empty idx1 indexes for testing offset (fix #9248)
More broken avi files :/
parent
f49919da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+4
-1
No files found.
modules/demux/avi/avi.c
View file @
08c53179
...
@@ -2140,7 +2140,10 @@ static int AVI_IndexFind_idx1( demux_t *p_demux,
...
@@ -2140,7 +2140,10 @@ static int AVI_IndexFind_idx1( demux_t *p_demux,
avi_chunk_list_t
*
p_movi
=
AVI_ChunkFind
(
p_riff
,
AVIFOURCC_movi
,
0
);
avi_chunk_list_t
*
p_movi
=
AVI_ChunkFind
(
p_riff
,
AVIFOURCC_movi
,
0
);
uint64_t
i_first_pos
=
UINT64_MAX
;
uint64_t
i_first_pos
=
UINT64_MAX
;
for
(
unsigned
i
=
0
;
i
<
__MIN
(
p_idx1
->
i_entry_count
,
100
);
i
++
)
for
(
unsigned
i
=
0
;
i
<
__MIN
(
p_idx1
->
i_entry_count
,
100
);
i
++
)
{
if
(
p_idx1
->
entry
[
i
].
i_length
>
0
)
i_first_pos
=
__MIN
(
i_first_pos
,
p_idx1
->
entry
[
i
].
i_pos
);
i_first_pos
=
__MIN
(
i_first_pos
,
p_idx1
->
entry
[
i
].
i_pos
);
}
const
uint64_t
i_movi_content
=
p_movi
->
i_chunk_pos
+
8
;
const
uint64_t
i_movi_content
=
p_movi
->
i_chunk_pos
+
8
;
if
(
i_first_pos
<
i_movi_content
)
if
(
i_first_pos
<
i_movi_content
)
...
...
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