Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
d5780867
Commit
d5780867
authored
Apr 19, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix latest crash in modules/codec/x264.c with ratecontrol.
parent
17ccb752
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
modules/codec/x264.c
modules/codec/x264.c
+8
-8
No files found.
modules/codec/x264.c
View file @
d5780867
...
...
@@ -782,14 +782,6 @@ static int Open ( vlc_object_t *p_this )
/* average bitrate specified by transcode vb */
p_sys
->
param
.
rc
.
i_bitrate
=
p_enc
->
fmt_out
.
i_bitrate
/
1000
;
#if X264_BUILD < 48
/* cbr = 1 overrides qp or crf and sets an average bitrate
but maxrate = average bitrate is needed for "real" CBR */
if
(
p_sys
->
param
.
rc
.
i_bitrate
>
0
)
p_sys
->
param
.
rc
.
b_cbr
=
1
;
#else
if
(
p_sys
->
param
.
rc
.
i_bitrate
>
0
)
p_sys
->
param
.
rc
.
i_rc_method
=
X264_RC_ABR
;
#endif
var_Get
(
p_enc
,
SOUT_CFG_PREFIX
"qpstep"
,
&
val
);
if
(
val
.
i_int
>=
0
&&
val
.
i_int
<=
51
)
p_sys
->
param
.
rc
.
i_qp_step
=
val
.
i_int
;
var_Get
(
p_enc
,
SOUT_CFG_PREFIX
"qpmin"
,
&
val
);
...
...
@@ -821,6 +813,14 @@ static int Open ( vlc_object_t *p_this )
#endif
}
#if X264_BUILD < 48
/* cbr = 1 overrides qp or crf and sets an average bitrate
but maxrate = average bitrate is needed for "real" CBR */
if
(
p_sys
->
param
.
rc
.
i_bitrate
>
0
)
p_sys
->
param
.
rc
.
b_cbr
=
1
;
#else
if
(
p_sys
->
param
.
rc
.
i_bitrate
>
0
)
p_sys
->
param
.
rc
.
i_rc_method
=
X264_RC_ABR
;
#endif
#if X264_BUILD >= 24
var_Get
(
p_enc
,
SOUT_CFG_PREFIX
"ratetol"
,
&
val
);
p_sys
->
param
.
rc
.
f_rate_tolerance
=
val
.
f_float
;
...
...
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