mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
fftools/ffmpeg: use correct unit prefix symbol for binary scaled byte values
Fix bug #10501 Signed-off-by: WHR <msl0000023508@gmail.com>
This commit is contained in:
parent
9d364fbdb0
commit
344ec7a3f7
@ -329,7 +329,7 @@ static void ffmpeg_cleanup(int ret)
|
||||
|
||||
if (do_benchmark) {
|
||||
int maxrss = getmaxrss() / 1024;
|
||||
av_log(NULL, AV_LOG_INFO, "bench: maxrss=%ikB\n", maxrss);
|
||||
av_log(NULL, AV_LOG_INFO, "bench: maxrss=%iKiB\n", maxrss);
|
||||
}
|
||||
|
||||
for (i = 0; i < nb_filtergraphs; i++)
|
||||
@ -570,7 +570,7 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti
|
||||
speed = pts != AV_NOPTS_VALUE && t != 0.0 ? (double)pts / AV_TIME_BASE / t : -1;
|
||||
|
||||
if (total_size < 0) av_bprintf(&buf, "size=N/A time=");
|
||||
else av_bprintf(&buf, "size=%8.0fkB time=", total_size / 1024.0);
|
||||
else av_bprintf(&buf, "size=%8.0fKiB time=", total_size / 1024.0);
|
||||
if (pts == AV_NOPTS_VALUE) {
|
||||
av_bprintf(&buf, "N/A ");
|
||||
} else {
|
||||
|
@ -613,7 +613,7 @@ static int update_video_stats(OutputStream *ost, const AVPacket *pkt, int write_
|
||||
|
||||
bitrate = (pkt->size * 8) / av_q2d(enc->time_base) / 1000.0;
|
||||
avg_bitrate = (double)(e->data_size * 8) / ti1 / 1000.0;
|
||||
fprintf(vstats_file, "s_size= %8.0fkB time= %0.3f br= %7.1fkbits/s avg_br= %7.1fkbits/s ",
|
||||
fprintf(vstats_file, "s_size= %8.0fKiB time= %0.3f br= %7.1fkbits/s avg_br= %7.1fkbits/s ",
|
||||
(double)e->data_size / 1024, ti1, bitrate, avg_bitrate);
|
||||
fprintf(vstats_file, "type= %c\n", av_get_picture_type_char(pict_type));
|
||||
|
||||
|
@ -725,8 +725,8 @@ static void mux_final_stats(Muxer *mux)
|
||||
}
|
||||
|
||||
av_log(of, AV_LOG_INFO,
|
||||
"video:%1.0fkB audio:%1.0fkB subtitle:%1.0fkB other streams:%1.0fkB "
|
||||
"global headers:%1.0fkB muxing overhead: %s\n",
|
||||
"video:%1.0fKiB audio:%1.0fKiB subtitle:%1.0fKiB other streams:%1.0fKiB "
|
||||
"global headers:%1.0fKiB muxing overhead: %s\n",
|
||||
video_size / 1024.0,
|
||||
audio_size / 1024.0,
|
||||
subtitle_size / 1024.0,
|
||||
|
Loading…
Reference in New Issue
Block a user