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
7984ed87
Commit
7984ed87
authored
May 28, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tiff: support inverted fill_order for packbits compression
Fixes #1995. Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
30d7dcce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
tiff.c
libavcodec/tiff.c
+6
-1
No files found.
libavcodec/tiff.c
View file @
7984ed87
...
...
@@ -549,7 +549,7 @@ static int tiff_unpack_strip(TiffContext *s, uint8_t *dst, int stride,
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"Read went out of bounds
\n
"
);
return
AVERROR_INVALIDDATA
;
}
code
=
(
int8_t
)
*
src
++
;
code
=
s
->
fill_order
?
(
int8_t
)
ff_reverse
[
*
src
++
]
:
(
int8_t
)
*
src
++
;
if
(
code
>=
0
)
{
code
++
;
if
(
pixels
+
code
>
width
)
{
...
...
@@ -578,6 +578,11 @@ static int tiff_unpack_strip(TiffContext *s, uint8_t *dst, int stride,
pixels
+=
code
;
}
}
if
(
s
->
fill_order
)
{
int
i
;
for
(
i
=
0
;
i
<
width
;
i
++
)
dst
[
i
]
=
ff_reverse
[
dst
[
i
]];
}
break
;
case
TIFF_LZW
:
pixels
=
ff_lzw_decode
(
s
->
lzw
,
dst
,
width
);
...
...
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