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
bc0f7a9c
Commit
bc0f7a9c
authored
Dec 26, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid negation in put_line().
Originally committed as revision 16327 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
4e60b643
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
faxcompr.c
libavcodec/faxcompr.c
+4
-4
No files found.
libavcodec/faxcompr.c
View file @
bc0f7a9c
...
...
@@ -232,19 +232,19 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb,
static
void
put_line
(
uint8_t
*
dst
,
int
size
,
int
width
,
const
int
*
runs
)
{
PutBitContext
pb
;
int
run
,
mode
=
1
,
pix_left
=
width
,
run_idx
=
0
;
int
run
,
mode
=
~
0
,
pix_left
=
width
,
run_idx
=
0
;
init_put_bits
(
&
pb
,
dst
,
size
*
8
);
while
(
pix_left
>
0
){
run
=
runs
[
run_idx
++
];
mode
=
!
mode
;
mode
=
~
mode
;
if
(
!
run
){
continue
;
}
pix_left
-=
run
;
for
(;
run
>
16
;
run
-=
16
)
put_sbits
(
&
pb
,
16
,
-
mode
);
put_sbits
(
&
pb
,
run
,
-
mode
);
put_sbits
(
&
pb
,
16
,
mode
);
put_sbits
(
&
pb
,
run
,
mode
);
}
}
...
...
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