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
714d2f97
Commit
714d2f97
authored
Dec 31, 2011
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only expand raw and packed 1bpp tiff horizontally if it is palettised.
parent
9d9316ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
tiff.c
libavcodec/tiff.c
+6
-3
No files found.
libavcodec/tiff.c
View file @
714d2f97
...
...
@@ -224,7 +224,8 @@ static int tiff_unpack_strip(TiffContext *s, uint8_t* dst, int stride, const uin
if
(
ssrc
+
size
-
src
<
width
)
return
AVERROR_INVALIDDATA
;
if
(
!
s
->
fill_order
)
{
horizontal_fill
(
s
->
bpp
,
dst
,
1
,
src
,
0
,
width
,
0
);
horizontal_fill
(
s
->
bpp
*
(
s
->
avctx
->
pix_fmt
==
PIX_FMT_PAL8
),
dst
,
1
,
src
,
0
,
width
,
0
);
}
else
{
int
i
;
for
(
i
=
0
;
i
<
width
;
i
++
)
...
...
@@ -241,7 +242,8 @@ static int tiff_unpack_strip(TiffContext *s, uint8_t* dst, int stride, const uin
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"Copy went out of bounds
\n
"
);
return
-
1
;
}
horizontal_fill
(
s
->
bpp
,
dst
,
1
,
src
,
0
,
code
,
pixels
);
horizontal_fill
(
s
->
bpp
*
(
s
->
avctx
->
pix_fmt
==
PIX_FMT_PAL8
),
dst
,
1
,
src
,
0
,
code
,
pixels
);
src
+=
code
;
pixels
+=
code
;
}
else
if
(
code
!=
-
128
){
// -127..-1
...
...
@@ -251,7 +253,8 @@ static int tiff_unpack_strip(TiffContext *s, uint8_t* dst, int stride, const uin
return
-
1
;
}
c
=
*
src
++
;
horizontal_fill
(
s
->
bpp
,
dst
,
0
,
NULL
,
c
,
code
,
pixels
);
horizontal_fill
(
s
->
bpp
*
(
s
->
avctx
->
pix_fmt
==
PIX_FMT_PAL8
),
dst
,
0
,
NULL
,
c
,
code
,
pixels
);
pixels
+=
code
;
}
}
...
...
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