summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-04-04 17:24:18 -0300
committerVittorio Giovara <vittorio.giovara@gmail.com>2017-04-27 09:59:54 -0400
commit498864fe800a1b4d4db804aa7e5ebbc7867df6ce (patch)
treefee8669348e8ce9638d7841bec63588210ccb5ee /libavformat
parentad52eef997dce374b4c7f3d1cdedf382935fea5e (diff)
downloadffmpeg-streaming-498864fe800a1b4d4db804aa7e5ebbc7867df6ce.zip
ffmpeg-streaming-498864fe800a1b4d4db804aa7e5ebbc7867df6ce.tar.gz
dump: use av_spherical_projection_name() to print spherical projection names
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/dump.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/libavformat/dump.c b/libavformat/dump.c
index c568956..261e21e 100644
--- a/libavformat/dump.c
+++ b/libavformat/dump.c
@@ -317,16 +317,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);
OpenPOWER on IntegriCloud