[FFmpeg-cvslog] matroskaenc: don't warn about unknown spherical metadata when there isn't any

James Almer git at videolan.org
Mon Oct 30 21:36:39 EET 2017


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Apr 14 13:06:35 2017 -0300| [bee89ed3ec61a4a0e72255ae6f4a4274d25b5ccd] | committer: Anton Khirnov

matroskaenc: don't warn about unknown spherical metadata when there isn't any

The same warning is issued when actual unknown spherical metadata is
found further down in the function.

Signed-off-by: James Almer <jamrial at gmail.com>
Signed-off-by: Anton Khirnov <anton at khirnov.net>

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

 libavformat/matroskaenc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index b8c434a664..ab83acfffb 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -662,10 +662,8 @@ static int mkv_write_video_projection(AVFormatContext *s, AVIOContext *pb,
         (const AVSphericalMapping *)av_stream_get_side_data(st, AV_PKT_DATA_SPHERICAL,
                                                             &side_data_size);
 
-    if (!side_data_size) {
-        av_log(NULL, AV_LOG_WARNING, "Unknown spherical metadata\n");
+    if (!side_data_size)
         return 0;
-    }
 
     ret = avio_open_dyn_buf(&dyn_cp);
     if (ret < 0)



More information about the ffmpeg-cvslog mailing list