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
103f9c26
Commit
103f9c26
authored
Jun 15, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/indeo5: Fix infinite loop in skip_hdr_extension()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
7f4dfbd0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
indeo5.c
libavcodec/indeo5.c
+5
-1
No files found.
libavcodec/indeo5.c
View file @
103f9c26
...
...
@@ -289,14 +289,18 @@ static int decode_gop_header(IVI45DecContext *ctx, AVCodecContext *avctx)
*
* @param[in,out] gb the GetBit context
*/
static
inline
void
skip_hdr_extension
(
GetBitContext
*
gb
)
static
inline
int
skip_hdr_extension
(
GetBitContext
*
gb
)
{
int
i
,
len
;
do
{
len
=
get_bits
(
gb
,
8
);
if
(
8
*
len
>
get_bits_left
(
gb
))
return
AVERROR_INVALIDDATA
;
for
(
i
=
0
;
i
<
len
;
i
++
)
skip_bits
(
gb
,
8
);
}
while
(
len
);
return
0
;
}
...
...
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