Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
cc6d754a
Commit
cc6d754a
authored
May 13, 2014
by
Ghislain MARY
Browse files
Set token partitions number only if we use VP8 partition output.
parent
2f942b81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/videofilters/vp8.c
src/videofilters/vp8.c
+3
-1
No files found.
src/videofilters/vp8.c
View file @
cc6d754a
...
...
@@ -165,7 +165,9 @@ static void enc_preprocess(MSFilter *f) {
vpx_codec_control
(
&
s
->
codec
,
VP8E_SET_STATIC_THRESHOLD
,
0
);
vpx_codec_control
(
&
s
->
codec
,
VP8E_SET_ENABLEAUTOALTREF
,
1
);
vpx_codec_control
(
&
s
->
codec
,
VP8E_SET_MAX_INTRA_BITRATE_PCT
,
400
);
/*limite iFrame size to 4 pframe*/
vpx_codec_control
(
&
s
->
codec
,
VP8E_SET_TOKEN_PARTITIONS
,
2
);
/* Output 4 partitions per frame */
if
(
s
->
flags
&
VPX_CODEC_USE_OUTPUT_PARTITION
)
{
vpx_codec_control
(
&
s
->
codec
,
VP8E_SET_TOKEN_PARTITIONS
,
2
);
/* Output 4 partitions per frame */
}
s
->
ready
=
TRUE
;
}
...
...
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