Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
x264
Commits
453a8ee4
Commit
453a8ee4
authored
Jan 27, 2010
by
Fiona Glaser
Browse files
Fix implicit CBR message to only print when in ABR mode
Also make it print outside of debug mode.
parent
46ff5086
Changes
1
Hide whitespace changes
Inline
Side-by-side
encoder/ratecontrol.c
View file @
453a8ee4
...
...
@@ -436,8 +436,16 @@ int x264_ratecontrol_new( x264_t *h )
}
else
if
(
h
->
param
.
rc
.
i_vbv_max_bitrate
==
0
)
{
x264_log
(
h
,
X264_LOG_DEBUG
,
"VBV maxrate unspecified, assuming CBR
\n
"
);
h
->
param
.
rc
.
i_vbv_max_bitrate
=
h
->
param
.
rc
.
i_bitrate
;
if
(
h
->
param
.
rc
.
i_rc_method
==
X264_RC_ABR
)
{
x264_log
(
h
,
X264_LOG_INFO
,
"VBV maxrate unspecified, assuming CBR
\n
"
);
h
->
param
.
rc
.
i_vbv_max_bitrate
=
h
->
param
.
rc
.
i_bitrate
;
}
else
{
x264_log
(
h
,
X264_LOG_INFO
,
"VBV bufsize set but maxrate unspecified, ignored
\n
"
);
h
->
param
.
rc
.
i_vbv_buffer_size
=
0
;
}
}
}
if
(
h
->
param
.
rc
.
i_vbv_max_bitrate
<
h
->
param
.
rc
.
i_bitrate
&&
...
...
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