[FFmpeg-cvslog] avformat/dump: use av_spherical_projection_name() to print spherical projection names

James Almer git at videolan.org
Fri Mar 31 20:13:07 EEST 2017


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Mar 28 23:49:48 2017 -0300| [2efb70c37992b16b589e7405cd36e2f15a34c8ec] | committer: James Almer

avformat/dump: use av_spherical_projection_name() to print spherical projection names

Reviewed-by: Vittorio Giovara <vittorio.giovara at gmail.com>
Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2efb70c37992b16b589e7405cd36e2f15a34c8ec
---

 libavformat/dump.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/libavformat/dump.c b/libavformat/dump.c
index 7c811ce..ef4a6b0 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);



More information about the ffmpeg-cvslog mailing list