Fix the printf format string
There were two problems with the format string in the conditionally compiled print statement. It referred to a variable that is no longer available and it used incorrect format specifiers. Change-Id: I315e22bea2691bb535a2e33f5ca206fc55287a37
This commit is contained in:
parent
e7922a5b70
commit
8af3e6507e
@ -4621,45 +4621,43 @@ static void encode_frame_to_data_rate
|
||||
vp8_clear_system_state();
|
||||
|
||||
if (cpi->twopass.total_left_stats.coded_error != 0.0)
|
||||
fprintf(f, "%10d %10d %10d %10d %10d %10d %10d %10d %10d %6d %6d"
|
||||
"%6d %6d %6d %5d %5d %5d %8d %8.2f %10d %10.3f"
|
||||
"%10.3f %8d\n",
|
||||
fprintf(f, "%10d %10d %10d %10d %10d %10"PRId64" %10"PRId64
|
||||
"%10"PRId64" %10d %6d %6d %6d %6d %5d %5d %5d %8d "
|
||||
"%8.2lf %"PRId64" %10.3lf %10"PRId64" %8d\n",
|
||||
cpi->common.current_video_frame, cpi->this_frame_target,
|
||||
cpi->projected_frame_size,
|
||||
(cpi->projected_frame_size - cpi->this_frame_target),
|
||||
(int)cpi->total_target_vs_actual,
|
||||
cpi->total_target_vs_actual,
|
||||
cpi->buffer_level,
|
||||
(cpi->oxcf.starting_buffer_level-cpi->bits_off_target),
|
||||
(int)cpi->total_actual_bits, cm->base_qindex,
|
||||
cpi->total_actual_bits, cm->base_qindex,
|
||||
cpi->active_best_quality, cpi->active_worst_quality,
|
||||
cpi->ni_av_qi, cpi->cq_target_quality,
|
||||
cpi->zbin_over_quant,
|
||||
cm->refresh_golden_frame, cm->refresh_alt_ref_frame,
|
||||
cm->frame_type, cpi->gfu_boost,
|
||||
cpi->twopass.est_max_qcorrection_factor,
|
||||
(int)cpi->twopass.bits_left,
|
||||
cpi->twopass.bits_left,
|
||||
cpi->twopass.total_left_stats.coded_error,
|
||||
(double)cpi->twopass.bits_left /
|
||||
cpi->twopass.total_left_stats.coded_error,
|
||||
cpi->tot_recode_hits);
|
||||
else
|
||||
fprintf(f, "%10d %10d %10d %10d %10d %10d %10d %10d %10d %6d %6d"
|
||||
"%6d %6d %6d %5d %5d %5d %8d %8.2f %10d %10.3f"
|
||||
"%8d\n",
|
||||
cpi->common.current_video_frame,
|
||||
cpi->this_frame_target, cpi->projected_frame_size,
|
||||
fprintf(f, "%10d %10d %10d %10d %10d %10"PRId64" %10"PRId64
|
||||
"%10"PRId64" %10d %6d %6d %6d %6d %5d %5d %5d %8d "
|
||||
"%8.2lf %"PRId64" %10.3lf %8d\n",
|
||||
cpi->common.current_video_frame, cpi->this_frame_target,
|
||||
cpi->projected_frame_size,
|
||||
(cpi->projected_frame_size - cpi->this_frame_target),
|
||||
(int)cpi->total_target_vs_actual,
|
||||
cpi->total_target_vs_actual,
|
||||
cpi->buffer_level,
|
||||
(cpi->oxcf.starting_buffer_level-cpi->bits_off_target),
|
||||
(int)cpi->total_actual_bits, cm->base_qindex,
|
||||
cpi->total_actual_bits, cm->base_qindex,
|
||||
cpi->active_best_quality, cpi->active_worst_quality,
|
||||
cpi->ni_av_qi, cpi->cq_target_quality,
|
||||
cpi->zbin_over_quant,
|
||||
cm->refresh_golden_frame, cm->refresh_alt_ref_frame,
|
||||
cm->frame_type, cpi->gfu_boost,
|
||||
cpi->twopass.est_max_qcorrection_factor,
|
||||
(int)cpi->twopass.bits_left,
|
||||
cpi->twopass.bits_left,
|
||||
cpi->twopass.total_left_stats.coded_error,
|
||||
cpi->tot_recode_hits);
|
||||
|
||||
@ -4667,7 +4665,6 @@ static void encode_frame_to_data_rate
|
||||
|
||||
{
|
||||
FILE *fmodes = fopen("Modes.stt", "a");
|
||||
int i;
|
||||
|
||||
fprintf(fmodes, "%6d:%1d:%1d:%1d ",
|
||||
cpi->common.current_video_frame,
|
||||
|
@ -1238,7 +1238,6 @@ int vp8_regulate_q(VP8_COMP *cpi, int target_bits_per_frame)
|
||||
{
|
||||
Q = cpi->oxcf.gold_q;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user