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
b450b825
Commit
b450b825
authored
Jul 07, 2016
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/exr: Fix mixed declarations and statements
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
50747d6b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
exr.c
libavcodec/exr.c
+4
-2
No files found.
libavcodec/exr.c
View file @
b450b825
...
...
@@ -1195,8 +1195,9 @@ static int decode_block(AVCodecContext *avctx, void *tdata,
}
else
{
for
(
x
=
0
;
x
<
td
->
xsize
;
x
++
)
{
union
av_intfloat32
t
;
int
c
;
for
(
int
c
=
0
;
c
<
rgb_channel_count
;
c
++
)
{
for
(
c
=
0
;
c
<
rgb_channel_count
;
c
++
)
{
t
.
i
=
bytestream_get_le32
(
&
rgb
[
c
]);
if
(
t
.
f
>
0
.
0
f
)
/* avoid negative values */
t
.
f
=
powf
(
t
.
f
,
one_gamma
);
...
...
@@ -1210,7 +1211,8 @@ static int decode_block(AVCodecContext *avctx, void *tdata,
}
else
{
// 16-bit
for
(
x
=
0
;
x
<
td
->
xsize
;
x
++
)
{
for
(
int
c
=
0
;
c
<
rgb_channel_count
;
c
++
)
{
int
c
;
for
(
c
=
0
;
c
<
rgb_channel_count
;
c
++
)
{
*
ptr_x
++
=
s
->
gamma_table
[
bytestream_get_le16
(
&
rgb
[
c
])];
}
...
...
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