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
11c5999e
Commit
11c5999e
authored
Dec 26, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix another sechole.
Originally committed as revision 16344 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
2a522579
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
faxcompr.c
libavcodec/faxcompr.c
+6
-6
No files found.
libavcodec/faxcompr.c
View file @
11c5999e
...
...
@@ -123,9 +123,10 @@ av_cold void ff_ccitt_unpack_init()
static
int
decode_group3_1d_line
(
AVCodecContext
*
avctx
,
GetBitContext
*
gb
,
int
pix_left
,
int
*
runs
,
const
int
*
runend
)
unsigned
int
pix_left
,
int
*
runs
,
const
int
*
runend
)
{
int
mode
=
0
,
run
=
0
;
int
mode
=
0
;
unsigned
int
run
=
0
;
unsigned
int
t
;
for
(;;){
t
=
get_vlc2
(
gb
,
ccitt_vlc
[
mode
].
table
,
9
,
2
);
...
...
@@ -136,14 +137,13 @@ static int decode_group3_1d_line(AVCodecContext *avctx, GetBitContext *gb,
av_log
(
avctx
,
AV_LOG_ERROR
,
"Run overrun
\n
"
);
return
-
1
;
}
pix_left
-=
run
;
if
(
pix_left
<=
0
){
if
(
!
pix_left
)
if
(
pix_left
<=
run
){
if
(
pix_left
==
run
)
break
;
runs
[
-
1
]
+=
pix_left
;
av_log
(
avctx
,
AV_LOG_ERROR
,
"Run went out of bounds
\n
"
);
return
-
1
;
}
pix_left
-=
run
;
run
=
0
;
mode
=
!
mode
;
}
else
if
((
int
)
t
==
-
1
){
...
...
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