Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
c9403419
Commit
c9403419
authored
Jul 03, 2011
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avidec: simplify convoluted flow in avi_load_index()
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
6728aaf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
avidec.c
libavformat/avidec.c
+7
-11
No files found.
libavformat/avidec.c
View file @
c9403419
...
...
@@ -1241,20 +1241,16 @@ static int avi_load_index(AVFormatContext *s)
(
tag
>>
16
)
&
0xff
,
(
tag
>>
24
)
&
0xff
,
size
);
switch
(
tag
)
{
case
MKTAG
(
'i'
,
'd'
,
'x'
,
'1'
):
if
(
avi_read_idx1
(
s
,
size
)
<
0
)
goto
skip
;
if
(
tag
==
MKTAG
(
'i'
,
'd'
,
'x'
,
'1'
)
&&
avi_read_idx1
(
s
,
size
)
>=
0
)
{
ret
=
0
;
goto
the_end
;
break
;
default
:
skip
:
size
+=
(
size
&
1
);
if
(
avio_skip
(
pb
,
size
)
<
0
)
goto
the_end
;
// something is wrong here
break
;
}
size
+=
(
size
&
1
);
if
(
avio_skip
(
pb
,
size
)
<
0
)
break
;
// something is wrong here
}
the_end
:
avio_seek
(
pb
,
pos
,
SEEK_SET
);
...
...
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