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
89fa32e5
Commit
89fa32e5
authored
Jun 01, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/snowenc: avoid floats in the rangecoder initialization
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f805d7be
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
snowenc.c
libavcodec/snowenc.c
+2
-2
No files found.
libavcodec/snowenc.c
View file @
89fa32e5
...
...
@@ -1560,7 +1560,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
return
ret
;
ff_init_range_encoder
(
c
,
pkt
->
data
,
pkt
->
size
);
ff_build_rac_states
(
c
,
0
.
05
*
(
1LL
<<
32
)
,
256
-
8
);
ff_build_rac_states
(
c
,
(
1LL
<<
32
)
/
20
,
256
-
8
);
for
(
i
=
0
;
i
<
s
->
nb_planes
;
i
++
){
int
hshift
=
i
?
s
->
chroma_h_shift
:
0
;
...
...
@@ -1726,7 +1726,7 @@ redo_frame:
&&
!
(
avctx
->
flags
&
CODEC_FLAG_PASS2
)
&&
s
->
m
.
me
.
scene_change_score
>
s
->
avctx
->
scenechange_threshold
){
ff_init_range_encoder
(
c
,
pkt
->
data
,
pkt
->
size
);
ff_build_rac_states
(
c
,
0
.
05
*
(
1LL
<<
32
)
,
256
-
8
);
ff_build_rac_states
(
c
,
(
1LL
<<
32
)
/
20
,
256
-
8
);
pic
->
pict_type
=
AV_PICTURE_TYPE_I
;
s
->
keyframe
=
1
;
s
->
current_picture
->
key_frame
=
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