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
f12c27da
Commit
f12c27da
authored
Aug 26, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sgidec: use bytestream2_get_bufferu()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
fcaf5fa2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
sgidec.c
libavcodec/sgidec.c
+4
-3
No files found.
libavcodec/sgidec.c
View file @
f12c27da
...
...
@@ -138,9 +138,10 @@ static int read_uncompressed_sgi(unsigned char* out_buf, SgiState *s)
for
(
y
=
s
->
height
-
1
;
y
>=
0
;
y
--
)
{
out_end
=
out_buf
+
(
y
*
s
->
linesize
);
if
(
s
->
bytes_per_channel
==
1
)
{
for
(
x
=
s
->
width
;
x
>
0
;
x
--
)
for
(
z
=
0
;
z
<
s
->
depth
;
z
++
)
*
out_end
++
=
bytestream2_get_byteu
(
&
gp
[
z
]);
for
(
x
=
s
->
width
;
x
>
0
;
x
--
)
{
bytestream2_get_bufferu
(
&
gp
[
z
],
out_end
,
s
->
depth
);
out_end
+=
s
->
depth
;
}
}
else
{
uint16_t
*
out16
=
(
uint16_t
*
)
out_end
;
for
(
x
=
s
->
width
;
x
>
0
;
x
--
)
...
...
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