diff options
author | James Almer <jamrial@gmail.com> | 2024-06-26 11:05:06 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-06-28 12:57:49 -0300 |
commit | 778096757dc0645fc407e82a5beb57f822f2fed3 (patch) | |
tree | 27e816106b4fc0025b33828841d6252f8b0e7703 /libavfilter/vf_showinfo.c | |
parent | 6da38e11f6a7e7a73d051b7b71abc41199415fcd (diff) | |
download | ffmpeg-778096757dc0645fc407e82a5beb57f822f2fed3.tar.gz |
avfilter/vf_showinfo: use av_spherical_projection_name()
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/vf_showinfo.c')
-rw-r--r-- | libavfilter/vf_showinfo.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index fdcf9210e7..98c5632d52 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -78,16 +78,7 @@ static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, const AVFrameSi return; } - if (spherical->projection == AV_SPHERICAL_EQUIRECTANGULAR) - av_log(ctx, AV_LOG_INFO, "equirectangular "); - else if (spherical->projection == AV_SPHERICAL_CUBEMAP) - av_log(ctx, AV_LOG_INFO, "cubemap "); - else if (spherical->projection == AV_SPHERICAL_EQUIRECTANGULAR_TILE) - av_log(ctx, AV_LOG_INFO, "tiled equirectangular "); - else { - av_log(ctx, AV_LOG_WARNING, "unknown\n"); - return; - } + av_log(ctx, AV_LOG_INFO, "%s ", av_spherical_projection_name(spherical->projection)); yaw = ((double)spherical->yaw) / (1 << 16); pitch = ((double)spherical->pitch) / (1 << 16); |