History

avfilter/vf_showinfo: only print yaw, pitch, and roll if set

James Almer committed 2 years ago

Commit beacdbf1 parent 77809671 file · +6 −4Browse files

Unified · Split

libavfilter/vf_showinfo.c+6−4
@@ -80,10 +80,12 @@ static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, const AVFrameSi · 79 unmodified lines
8080
8181 av_log(ctx, AV_LOG_INFO, "%s ", av_spherical_projection_name(spherical->projection));
8282
83− yaw = ((double)spherical->yaw) / (1 << 16);
84− pitch = ((double)spherical->pitch) / (1 << 16);
85− roll = ((double)spherical->roll) / (1 << 16);
86− av_log(ctx, AV_LOG_INFO, "(%f/%f/%f) ", yaw, pitch, roll);
83+ if (spherical->yaw || spherical->pitch || spherical->roll) {
84+ yaw = ((double)spherical->yaw) / (1 << 16);
85+ pitch = ((double)spherical->pitch) / (1 << 16);
86+ roll = ((double)spherical->roll) / (1 << 16);
87+ av_log(ctx, AV_LOG_INFO, "(%f/%f/%f) ", yaw, pitch, roll);
88+ }
8789
8890 if (spherical->projection == AV_SPHERICAL_EQUIRECTANGULAR_TILE) {
8991 size_t l, t, r, b;

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