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
80 80
81 av_log(ctx, AV_LOG_INFO, "%s ", av_spherical_projection_name(spherical->projection));81 av_log(ctx, AV_LOG_INFO, "%s ", av_spherical_projection_name(spherical->projection));
82 82
83 yaw = ((double)spherical->yaw) / (1 << 16);83 if (spherical->yaw || spherical->pitch || spherical->roll) {
84 pitch = ((double)spherical->pitch) / (1 << 16);84 yaw = ((double)spherical->yaw) / (1 << 16);
85 roll = ((double)spherical->roll) / (1 << 16);85 pitch = ((double)spherical->pitch) / (1 << 16);
86 av_log(ctx, AV_LOG_INFO, "(%f/%f/%f) ", yaw, pitch, roll);86 roll = ((double)spherical->roll) / (1 << 16);
87 av_log(ctx, AV_LOG_INFO, "(%f/%f/%f) ", yaw, pitch, roll);
88 }
87 89
88 if (spherical->projection == AV_SPHERICAL_EQUIRECTANGULAR_TILE) {90 if (spherical->projection == AV_SPHERICAL_EQUIRECTANGULAR_TILE) {
89 size_t l, t, r, b;91 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