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
37c0a443
Commit
37c0a443
authored
Apr 19, 2011
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix libx264 fastfirstpass, move apply_fastfirstpass after user customized options.
parent
90a29294
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
libx264.c
libavcodec/libx264.c
+7
-7
No files found.
libavcodec/libx264.c
View file @
37c0a443
...
...
@@ -262,13 +262,6 @@ static av_cold int X264_init(AVCodecContext *avctx)
return
-
1
;
}
if
(
x4
->
fastfirstpass
)
x264_param_apply_fastfirstpass
(
&
x4
->
params
);
if
(
x4
->
profile
)
if
(
x264_param_apply_profile
(
&
x4
->
params
,
x4
->
profile
)
<
0
)
return
-
1
;
x4
->
params
.
pf_log
=
X264_log
;
x4
->
params
.
p_log_private
=
avctx
;
x4
->
params
.
i_log_level
=
X264_LOG_DEBUG
;
...
...
@@ -302,6 +295,13 @@ static av_cold int X264_init(AVCodecContext *avctx)
(
float
)
avctx
->
rc_initial_buffer_occupancy
/
avctx
->
rc_buffer_size
;
}
if
(
x4
->
fastfirstpass
)
x264_param_apply_fastfirstpass
(
&
x4
->
params
);
if
(
x4
->
profile
)
if
(
x264_param_apply_profile
(
&
x4
->
params
,
x4
->
profile
)
<
0
)
return
-
1
;
x4
->
params
.
i_width
=
avctx
->
width
;
x4
->
params
.
i_height
=
avctx
->
height
;
x4
->
params
.
vui
.
i_sar_width
=
avctx
->
sample_aspect_ratio
.
num
;
...
...
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