mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
qscale estimate fix, diff extended to 64bit wide. patch by Stephen Davies <steve@daviesfam.org>
Originally committed as revision 247 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3046f265b9
commit
fb4a9613ee
@ -1310,9 +1310,9 @@ static void rate_control_init(MpegEncContext *s)
|
||||
*/
|
||||
static int rate_estimate_qscale(MpegEncContext *s)
|
||||
{
|
||||
INT64 total_bits = s->total_bits;
|
||||
INT64 diff, total_bits = s->total_bits;
|
||||
float q;
|
||||
int qscale, diff, qmin;
|
||||
int qscale, qmin;
|
||||
|
||||
if (s->pict_type == I_TYPE) {
|
||||
s->wanted_bits += s->I_frame_bits;
|
||||
|
Loading…
Reference in New Issue
Block a user