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
c25b6ae8
Commit
c25b6ae8
authored
Nov 14, 2014
by
Benoit Fouet
Committed by
Michael Niedermayer
Nov 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/pngdec: fix some indentation/whitespaces
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
6499e63f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
pngdec.c
libavcodec/pngdec.c
+9
-9
No files found.
libavcodec/pngdec.c
View file @
c25b6ae8
...
@@ -820,7 +820,7 @@ skip_tag:
...
@@ -820,7 +820,7 @@ skip_tag:
}
}
exit_loop
:
exit_loop
:
if
(
s
->
bits_per_pixel
==
1
&&
s
->
color_type
==
PNG_COLOR_TYPE_PALETTE
){
if
(
s
->
bits_per_pixel
==
1
&&
s
->
color_type
==
PNG_COLOR_TYPE_PALETTE
)
{
int
i
,
j
,
k
;
int
i
,
j
,
k
;
uint8_t
*
pd
=
p
->
data
[
0
];
uint8_t
*
pd
=
p
->
data
[
0
];
for
(
j
=
0
;
j
<
s
->
height
;
j
++
)
{
for
(
j
=
0
;
j
<
s
->
height
;
j
++
)
{
...
@@ -846,7 +846,7 @@ exit_loop:
...
@@ -846,7 +846,7 @@ exit_loop:
uint8_t
*
pd
=
p
->
data
[
0
];
uint8_t
*
pd
=
p
->
data
[
0
];
for
(
j
=
0
;
j
<
s
->
height
;
j
++
)
{
for
(
j
=
0
;
j
<
s
->
height
;
j
++
)
{
i
=
s
->
width
/
4
;
i
=
s
->
width
/
4
;
if
(
s
->
color_type
==
PNG_COLOR_TYPE_PALETTE
){
if
(
s
->
color_type
==
PNG_COLOR_TYPE_PALETTE
)
{
if
((
s
->
width
&
3
)
>=
3
)
pd
[
4
*
i
+
2
]
=
(
pd
[
i
]
>>
2
)
&
3
;
if
((
s
->
width
&
3
)
>=
3
)
pd
[
4
*
i
+
2
]
=
(
pd
[
i
]
>>
2
)
&
3
;
if
((
s
->
width
&
3
)
>=
2
)
pd
[
4
*
i
+
1
]
=
(
pd
[
i
]
>>
4
)
&
3
;
if
((
s
->
width
&
3
)
>=
2
)
pd
[
4
*
i
+
1
]
=
(
pd
[
i
]
>>
4
)
&
3
;
if
((
s
->
width
&
3
)
>=
1
)
pd
[
4
*
i
+
0
]
=
pd
[
i
]
>>
6
;
if
((
s
->
width
&
3
)
>=
1
)
pd
[
4
*
i
+
0
]
=
pd
[
i
]
>>
6
;
...
@@ -875,7 +875,7 @@ exit_loop:
...
@@ -875,7 +875,7 @@ exit_loop:
uint8_t
*
pd
=
p
->
data
[
0
];
uint8_t
*
pd
=
p
->
data
[
0
];
for
(
j
=
0
;
j
<
s
->
height
;
j
++
)
{
for
(
j
=
0
;
j
<
s
->
height
;
j
++
)
{
i
=
s
->
width
/
2
;
i
=
s
->
width
/
2
;
if
(
s
->
color_type
==
PNG_COLOR_TYPE_PALETTE
){
if
(
s
->
color_type
==
PNG_COLOR_TYPE_PALETTE
)
{
if
(
s
->
width
&
1
)
pd
[
2
*
i
+
0
]
=
pd
[
i
]
>>
4
;
if
(
s
->
width
&
1
)
pd
[
2
*
i
+
0
]
=
pd
[
i
]
>>
4
;
for
(
i
--
;
i
>=
0
;
i
--
)
{
for
(
i
--
;
i
>=
0
;
i
--
)
{
pd
[
2
*
i
+
1
]
=
pd
[
i
]
&
15
;
pd
[
2
*
i
+
1
]
=
pd
[
i
]
&
15
;
...
...
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