diff options
author | James Almer <jamrial@gmail.com> | 2017-03-28 23:49:48 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-03-31 13:27:04 -0300 |
commit | 2efb70c37992b16b589e7405cd36e2f15a34c8ec (patch) | |
tree | 13de07d4390c920e611570802c9371bfb3d9fb7c /libavformat | |
parent | 9033e8723c86ed31872b22bd576602d48e2b9d0e (diff) | |
download | ffmpeg-2efb70c37992b16b589e7405cd36e2f15a34c8ec.tar.gz |
avformat/dump: use av_spherical_projection_name() to print spherical projection names
Reviewed-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/dump.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libavformat/dump.c b/libavformat/dump.c index 7c811ce5d2..ef4a6b093b 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -353,16 +353,7 @@ static void dump_spherical(void *ctx, AVCodecParameters *par, AVPacketSideData * 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"); - 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); |