[FFmpeg-devel] [PATCH] avformat/dump: be more verbose when printing spherical metadata information

James Almer jamrial at gmail.com
Thu Dec 15 22:20:33 EET 2016


Signed-off-by: James Almer <jamrial at gmail.com>
---
This prints

spherical: equirectangular, yaw=0.000000, pitch=0.000000, roll=0.000000

Instead of

spherical: equirectangular (0.000000/0.000000/0.000000)

 libavformat/dump.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavformat/dump.c b/libavformat/dump.c
index d9aa3af..73914a5 100644
--- a/libavformat/dump.c
+++ b/libavformat/dump.c
@@ -354,9 +354,9 @@ static void dump_spherical(void *ctx, AVPacketSideData *sd)
     }
 
     if (spherical->projection == AV_SPHERICAL_EQUIRECTANGULAR)
-        av_log(ctx, AV_LOG_INFO, "equirectangular ");
+        av_log(ctx, AV_LOG_INFO, "equirectangular, ");
     else if (spherical->projection == AV_SPHERICAL_CUBEMAP)
-        av_log(ctx, AV_LOG_INFO, "cubemap ");
+        av_log(ctx, AV_LOG_INFO, "cubemap, ");
     else {
         av_log(ctx, AV_LOG_WARNING, "unknown");
         return;
@@ -365,7 +365,7 @@ static void dump_spherical(void *ctx, AVPacketSideData *sd)
     yaw = ((double)spherical->yaw) / (1 << 16);
     pitch = ((double)spherical->pitch) / (1 << 16);
     roll = ((double)spherical->roll) / (1 << 16);
-    av_log(ctx, AV_LOG_INFO, "(%f/%f/%f) ", yaw, pitch, roll);
+    av_log(ctx, AV_LOG_INFO, "yaw=%f, pitch=%f, roll=%f ", yaw, pitch, roll);
 }
 
 static void dump_sidedata(void *ctx, AVStream *st, const char *indent)
-- 
2.10.2



More information about the ffmpeg-devel mailing list