Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
05a68584
Commit
05a68584
authored
May 04, 2010
by
Ilkka Ollakka
Browse files
avcodec: use vlc_GetCPUCount() to set thread count also in encoder
parent
8f2f41dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/codec/avcodec/encoder.c
View file @
05a68584
...
...
@@ -503,7 +503,7 @@ int OpenEncoder( vlc_object_t *p_this )
if
(
p_enc
->
i_threads
>=
1
)
avcodec_thread_init
(
p_context
,
p_enc
->
i_threads
);
else
avcodec_thread_init
(
p_context
,
2
);
avcodec_thread_init
(
p_context
,
vlc_GetCPUCount
()
);
if
(
p_sys
->
i_vtolerance
>
0
)
p_context
->
bit_rate_tolerance
=
p_sys
->
i_vtolerance
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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