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
4b7b1960
Commit
4b7b1960
authored
May 17, 2002
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qmin==1 bugfix
Originally committed as revision 511 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
a7bd8797
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ratecontrol.c
libavcodec/ratecontrol.c
+3
-3
No files found.
libavcodec/ratecontrol.c
View file @
4b7b1960
...
...
@@ -155,7 +155,7 @@ int ff_rate_estimate_qscale(MpegEncContext *s)
qmin
=
(
int
)(
qmin
*
s
->
b_quant_factor
+
0
.
5
);
qmax
=
(
int
)(
qmax
*
s
->
b_quant_factor
+
0
.
5
);
}
if
(
qmin
<
2
)
qmin
=
2
;
if
(
qmin
<
1
)
qmin
=
1
;
if
(
qmax
>
31
)
qmax
=
31
;
if
(
qmax
<=
qmin
)
qmax
=
qmin
;
...
...
@@ -314,7 +314,7 @@ static int init_pass2(MpegEncContext *s)
qmin
=
(
int
)(
qmin
*
s
->
b_quant_factor
+
0
.
5
);
qmax
=
(
int
)(
qmax
*
s
->
b_quant_factor
+
0
.
5
);
}
if
(
qmin
<
2
)
qmin
=
2
;
if
(
qmin
<
1
)
qmin
=
1
;
if
(
qmax
>
31
)
qmax
=
31
;
if
(
qmax
<=
qmin
)
qmax
=
qmin
;
...
...
@@ -386,7 +386,7 @@ int ff_rate_estimate_qscale_pass2(MpegEncContext *s)
qmin
=
(
int
)(
qmin
*
s
->
b_quant_factor
+
0
.
5
);
qmax
=
(
int
)(
qmax
*
s
->
b_quant_factor
+
0
.
5
);
}
if
(
qmin
<
2
)
qmin
=
2
;
if
(
qmin
<
1
)
qmin
=
1
;
if
(
qmax
>
31
)
qmax
=
31
;
if
(
qmax
<=
qmin
)
qmax
=
qmin
;
...
...
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