Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -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; |