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
47babca8
Commit
47babca8
authored
Oct 22, 2006
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indention
Originally committed as revision 6768 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
20da94e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
gifdec.c
libavcodec/gifdec.c
+14
-14
No files found.
libavcodec/gifdec.c
View file @
47babca8
...
...
@@ -251,19 +251,19 @@ static int gif_read_image(GifState *s)
return
-
EINVAL
;
/* build the palette */
n
=
(
1
<<
bits_per_pixel
);
spal
=
palette
;
for
(
i
=
0
;
i
<
n
;
i
++
)
{
s
->
image_palette
[
i
]
=
(
0xff
<<
24
)
|
(
spal
[
0
]
<<
16
)
|
(
spal
[
1
]
<<
8
)
|
(
spal
[
2
]);
spal
+=
3
;
}
for
(;
i
<
256
;
i
++
)
s
->
image_palette
[
i
]
=
(
0xff
<<
24
);
/* handle transparency */
if
(
s
->
transparent_color_index
>=
0
)
s
->
image_palette
[
s
->
transparent_color_index
]
=
0
;
line
=
NULL
;
n
=
(
1
<<
bits_per_pixel
);
spal
=
palette
;
for
(
i
=
0
;
i
<
n
;
i
++
)
{
s
->
image_palette
[
i
]
=
(
0xff
<<
24
)
|
(
spal
[
0
]
<<
16
)
|
(
spal
[
1
]
<<
8
)
|
(
spal
[
2
]);
spal
+=
3
;
}
for
(;
i
<
256
;
i
++
)
s
->
image_palette
[
i
]
=
(
0xff
<<
24
);
/* handle transparency */
if
(
s
->
transparent_color_index
>=
0
)
s
->
image_palette
[
s
->
transparent_color_index
]
=
0
;
line
=
NULL
;
/* now get the image data */
code_size
=
bytestream_get_byte
(
&
s
->
bytestream
);
...
...
@@ -276,7 +276,7 @@ static int gif_read_image(GifState *s)
pass
=
0
;
y1
=
0
;
for
(
y
=
0
;
y
<
height
;
y
++
)
{
GLZWDecode
(
s
,
ptr
,
width
);
GLZWDecode
(
s
,
ptr
,
width
);
if
(
is_interleaved
)
{
switch
(
pass
)
{
default:
...
...
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