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
d2ed3391
Commit
d2ed3391
authored
Apr 03, 2016
by
Martin Vignali
Committed by
Paul B Mahol
Apr 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavcodec/exr: fix PRX24 Float decompression
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
4f682318
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
exr.c
libavcodec/exr.c
+12
-3
No files found.
libavcodec/exr.c
View file @
d2ed3391
...
...
@@ -778,14 +778,23 @@ static int pxr24_uncompress(EXRContext *s, const uint8_t *src,
int
compressed_size
,
int
uncompressed_size
,
EXRThreadData
*
td
)
{
unsigned
long
dest_len
=
uncompressed_size
;
unsigned
long
dest_len
,
expected_len
;
const
uint8_t
*
in
=
td
->
tmp
;
uint8_t
*
out
;
int
c
,
i
,
j
;
if
(
uncompress
(
td
->
tmp
,
&
dest_len
,
src
,
compressed_size
)
!=
Z_OK
||
dest_len
!=
uncompressed_size
)
if
(
s
->
pixel_type
==
EXR_FLOAT
)
expected_len
=
(
uncompressed_size
/
4
)
*
3
;
/* PRX 24 store float in 24 bit instead of 32 */
else
expected_len
=
uncompressed_size
;
dest_len
=
expected_len
;
if
(
uncompress
(
td
->
tmp
,
&
dest_len
,
src
,
compressed_size
)
!=
Z_OK
)
{
return
AVERROR_INVALIDDATA
;
}
else
if
(
dest_len
!=
expected_len
){
return
AVERROR_INVALIDDATA
;
}
out
=
td
->
uncompressed_data
;
for
(
i
=
0
;
i
<
s
->
ysize
;
i
++
)
...
...
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