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
aaebdce3
Commit
aaebdce3
authored
Jan 25, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/gifdec: simplify "!= 0" checks
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
f1412c79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gifdec.c
libavcodec/gifdec.c
+3
-3
No files found.
libavcodec/gifdec.c
View file @
aaebdce3
...
...
@@ -338,7 +338,7 @@ static int gif_read_extension(GifState *s)
/* NOTE: many extension blocks can come after */
discard_ext:
while
(
ext_len
!=
0
)
{
while
(
ext_len
)
{
/* There must be at least ext_len bytes and 1 for next block size byte. */
if
(
bytestream2_get_bytes_left
(
&
s
->
gb
)
<
ext_len
+
1
)
return
AVERROR_INVALIDDATA
;
...
...
@@ -362,8 +362,8 @@ static int gif_read_header1(GifState *s)
/* read gif signature */
bytestream2_get_bufferu
(
&
s
->
gb
,
sig
,
6
);
if
(
memcmp
(
sig
,
gif87a_sig
,
6
)
!=
0
&&
memcmp
(
sig
,
gif89a_sig
,
6
)
!=
0
)
if
(
memcmp
(
sig
,
gif87a_sig
,
6
)
&&
memcmp
(
sig
,
gif89a_sig
,
6
))
return
AVERROR_INVALIDDATA
;
/* read screen header */
...
...
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