History

avfilter/vf_showinfo: remove backspaces

They mess with storing editing and comparing the results

Michael Niedermayer committed 4 years ago

Commit 31581ae1 parent d2428d81 file · +7 −4Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_showinfo.c+7−4
@@ -733,12 +733,15 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) · 732 unmodified lines
733733 av_log(ctx, AV_LOG_INFO, " %08"PRIX32, plane_checksum[plane]);
734734 av_log(ctx, AV_LOG_INFO, "] mean:[");
735735 for (plane = 0; plane < 4 && frame->data[plane] && frame->linesize[plane]; plane++)
736− av_log(ctx, AV_LOG_INFO, "%"PRId64" ", (sum[plane] + pixelcount[plane]/2) / pixelcount[plane]);
737− av_log(ctx, AV_LOG_INFO, "\b] stdev:[");
736+ av_log(ctx, AV_LOG_INFO, "%s%"PRId64,
737+ plane ? " ":"",
738+ (sum[plane] + pixelcount[plane]/2) / pixelcount[plane]);
739+ av_log(ctx, AV_LOG_INFO, "] stdev:[");
738740 for (plane = 0; plane < 4 && frame->data[plane] && frame->linesize[plane]; plane++)
739− av_log(ctx, AV_LOG_INFO, "%3.1f ",
741+ av_log(ctx, AV_LOG_INFO, "%s%3.1f",
742+ plane ? " ":"",
740743 sqrt((sum2[plane] - sum[plane]*(double)sum[plane]/pixelcount[plane])/pixelcount[plane]));
741− av_log(ctx, AV_LOG_INFO, "\b]");
744+ av_log(ctx, AV_LOG_INFO, "]");
742745 }
743746 av_log(ctx, AV_LOG_INFO, "\n");
744747

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t