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
bd58e7f7
Commit
bd58e7f7
authored
Feb 25, 2008
by
Loren Merritt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove a memcpy
Originally committed as revision 12193 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
8af9090f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pngdec.c
libavcodec/pngdec.c
+2
-2
No files found.
libavcodec/pngdec.c
View file @
bd58e7f7
...
...
@@ -262,8 +262,8 @@ static void png_handle_row(PNGDecContext *s)
if
(
s
->
color_type
==
PNG_COLOR_TYPE_RGB_ALPHA
)
{
png_filter_row
(
&
s
->
dsp
,
s
->
tmp_row
,
s
->
crow_buf
[
0
],
s
->
crow_buf
+
1
,
s
->
last_row
,
s
->
row_size
,
s
->
bpp
);
memcpy
(
s
->
last_row
,
s
->
tmp_row
,
s
->
row_size
);
convert_to_rgb32
(
ptr
,
s
->
tmp_row
,
s
->
width
);
FFSWAP
(
uint8_t
*
,
s
->
last_row
,
s
->
tmp_row
);
}
else
{
/* in normal case, we avoid one copy */
if
(
s
->
y
==
0
)
...
...
@@ -289,7 +289,7 @@ static void png_handle_row(PNGDecContext *s)
break
;
png_filter_row
(
&
s
->
dsp
,
s
->
tmp_row
,
s
->
crow_buf
[
0
],
s
->
crow_buf
+
1
,
s
->
last_row
,
s
->
pass_row_size
,
s
->
bpp
);
memcpy
(
s
->
last_row
,
s
->
tmp_row
,
s
->
pass_row_size
);
FFSWAP
(
uint8_t
*
,
s
->
last_row
,
s
->
tmp_row
);
got_line
=
1
;
}
if
((
png_pass_dsp_ymask
[
s
->
pass
]
<<
(
s
->
y
&
7
))
&
0x80
)
{
...
...
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