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
98b7a50a
Commit
98b7a50a
authored
Dec 24, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tiffdec: Fix runend handling
Fixes Ticket1999 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
d4d8d4f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
faxcompr.c
libavcodec/faxcompr.c
+7
-3
No files found.
libavcodec/faxcompr.c
View file @
98b7a50a
...
@@ -163,8 +163,6 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb,
...
@@ -163,8 +163,6 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb,
int
run_off
=
*
ref
++
;
int
run_off
=
*
ref
++
;
unsigned
int
offs
=
0
,
run
=
0
;
unsigned
int
offs
=
0
,
run
=
0
;
runend
--
;
// for the last written 0
while
(
offs
<
width
){
while
(
offs
<
width
){
int
cmode
=
get_vlc2
(
gb
,
ccitt_group3_2d_vlc
.
table
,
9
,
1
);
int
cmode
=
get_vlc2
(
gb
,
ccitt_group3_2d_vlc
.
table
,
9
,
1
);
if
(
cmode
==
-
1
){
if
(
cmode
==
-
1
){
...
@@ -234,7 +232,13 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb,
...
@@ -234,7 +232,13 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb,
}
}
}
}
*
runs
++
=
saved_run
;
*
runs
++
=
saved_run
;
if
(
saved_run
)
{
if
(
runs
>=
runend
){
av_log
(
avctx
,
AV_LOG_ERROR
,
"Run overrun
\n
"
);
return
-
1
;
}
*
runs
++
=
0
;
*
runs
++
=
0
;
}
return
0
;
return
0
;
}
}
...
...
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