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
338978a7
Commit
338978a7
authored
Mar 05, 2012
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libx264: Allow overriding the sliced threads option
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
39da3b22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
libx264.c
libavcodec/libx264.c
+3
-0
No files found.
libavcodec/libx264.c
View file @
338978a7
...
...
@@ -379,6 +379,8 @@ static av_cold int X264_init(AVCodecContext *avctx)
x4
->
params
.
analyse
.
b_psnr
=
avctx
->
flags
&
CODEC_FLAG_PSNR
;
x4
->
params
.
i_threads
=
avctx
->
thread_count
;
if
(
avctx
->
thread_type
)
x4
->
params
.
b_sliced_threads
=
avctx
->
thread_type
==
FF_THREAD_SLICE
;
x4
->
params
.
b_interlaced
=
avctx
->
flags
&
CODEC_FLAG_INTERLACED_DCT
;
...
...
@@ -536,6 +538,7 @@ static const AVCodecDefault x264_defaults[] = {
{
"coder"
,
"-1"
},
{
"cmp"
,
"-1"
},
{
"threads"
,
AV_STRINGIFY
(
X264_THREADS_AUTO
)
},
{
"thread_type"
,
"0"
},
{
NULL
},
};
...
...
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