Merge "vp8: make gf_group_bits 64-bit"
This commit is contained in:
Коммит
c21226b638
|
@ -2133,8 +2133,10 @@ static void define_gf_group(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame)
|
|||
/* Clip cpi->twopass.gf_group_bits based on user supplied data rate
|
||||
* variability limit (cpi->oxcf.two_pass_vbrmax_section)
|
||||
*/
|
||||
if (cpi->twopass.gf_group_bits > max_bits * cpi->baseline_gf_interval)
|
||||
cpi->twopass.gf_group_bits = max_bits * cpi->baseline_gf_interval;
|
||||
if (cpi->twopass.gf_group_bits >
|
||||
(int64_t)max_bits * cpi->baseline_gf_interval)
|
||||
cpi->twopass.gf_group_bits =
|
||||
(int64_t)max_bits * cpi->baseline_gf_interval;
|
||||
|
||||
/* Reset the file position */
|
||||
reset_fpf_position(cpi, start_pos);
|
||||
|
|
|
@ -587,7 +587,7 @@ typedef struct VP8_COMP
|
|||
/* Error score of frames still to be coded in kf group */
|
||||
int64_t kf_group_error_left;
|
||||
/* Projected Bits available for a group including 1 GF or ARF */
|
||||
int gf_group_bits;
|
||||
int64_t gf_group_bits;
|
||||
/* Bits for the golden frame or ARF */
|
||||
int gf_bits;
|
||||
int alt_extra_bits;
|
||||
|
|
|
@ -1708,8 +1708,9 @@ static void define_gf_group(VP9_COMP *cpi, FIRSTPASS_STATS *this_frame) {
|
|||
|
||||
// Clip cpi->twopass.gf_group_bits based on user supplied data rate
|
||||
// variability limit (cpi->oxcf.two_pass_vbrmax_section)
|
||||
if (cpi->twopass.gf_group_bits > max_bits * cpi->baseline_gf_interval)
|
||||
cpi->twopass.gf_group_bits = max_bits * cpi->baseline_gf_interval;
|
||||
if (cpi->twopass.gf_group_bits >
|
||||
(int64_t)max_bits * cpi->baseline_gf_interval)
|
||||
cpi->twopass.gf_group_bits = (int64_t)max_bits * cpi->baseline_gf_interval;
|
||||
|
||||
// Reset the file position
|
||||
reset_fpf_position(cpi, start_pos);
|
||||
|
|
Загрузка…
Ссылка в новой задаче