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
17b11ffe
Commit
17b11ffe
authored
Feb 15, 2012
by
Kostya Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proresenc: initialise 'sign' variable
parent
f3e08490
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
proresenc.c
libavcodec/proresenc.c
+2
-0
No files found.
libavcodec/proresenc.c
View file @
17b11ffe
...
...
@@ -265,6 +265,7 @@ static void encode_dcs(PutBitContext *pb, DCTELEM *blocks,
prev_dc
=
(
blocks
[
0
]
-
0x4000
)
/
scale
;
encode_vlc_codeword
(
pb
,
FIRST_DC_CB
,
MAKE_CODE
(
prev_dc
));
sign
=
0
;
codebook
=
3
;
blocks
+=
64
;
...
...
@@ -409,6 +410,7 @@ static int estimate_dcs(int *error, DCTELEM *blocks, int blocks_per_slice,
prev_dc
=
(
blocks
[
0
]
-
0x4000
)
/
scale
;
bits
=
estimate_vlc
(
FIRST_DC_CB
,
MAKE_CODE
(
prev_dc
));
sign
=
0
;
codebook
=
3
;
blocks
+=
64
;
*
error
+=
FFABS
(
blocks
[
0
]
-
0x4000
)
%
scale
;
...
...
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