提交 bee89ed3 编写于 作者: J James Almer 提交者: 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: NJames Almer <jamrial@gmail.com>
Signed-off-by: NAnton Khirnov <anton@khirnov.net>
上级 04b0f0e3
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册