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
5f7ab90a
Commit
5f7ab90a
authored
Mar 24, 2007
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 8500 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
93e91145
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
gifdec.c
libavcodec/gifdec.c
+4
-12
No files found.
libavcodec/gifdec.c
View file @
5f7ab90a
...
...
@@ -245,10 +245,8 @@ static int gif_read_header1(GifState *s)
static
int
gif_parse_next_image
(
GifState
*
s
)
{
int
ret
,
code
;
for
(;;)
{
code
=
bytestream_get_byte
(
&
s
->
bytestream
);
int
code
=
bytestream_get_byte
(
&
s
->
bytestream
);
#ifdef DEBUG
dprintf
(
s
->
avctx
,
"gif: code=%02x '%c'
\n
"
,
code
,
code
);
#endif
...
...
@@ -256,25 +254,19 @@ static int gif_parse_next_image(GifState *s)
case
','
:
if
(
gif_read_image
(
s
)
<
0
)
return
-
1
;
ret
=
0
;
goto
the_end
;
return
0
;
case
';'
:
/* end of image */
ret
=
-
1
;
goto
the_end
;
return
-
1
;
case
'!'
:
if
(
gif_read_extension
(
s
)
<
0
)
return
-
1
;
break
;
case
EOF
:
default:
/* error or errneous EOF */
ret
=
-
1
;
goto
the_end
;
return
-
1
;
}
}
the_end:
return
ret
;
}
static
int
gif_decode_init
(
AVCodecContext
*
avctx
)
...
...
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