diff options
author | James Almer <jamrial@gmail.com> | 2017-11-02 20:42:05 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-11-03 19:41:08 -0300 |
commit | 55fe72a841ba306370e68e86c88f34b4456aa4dd (patch) | |
tree | 7b943bb315d37c2e8188dad2863cc1ec015dfcca /libavformat | |
parent | 1746c7c8f2f9a6c5eacb486426dd0a579b4b7498 (diff) | |
download | ffmpeg-55fe72a841ba306370e68e86c88f34b4456aa4dd.tar.gz |
matroskadec: don't warn about unknown spherical medata when none is present
track->video.projection.type is set to 0 (a Matroska specific "No spherical
metadata present" value, with no related AVSphericalMapping) by default on
files without the element.
This removes bogus warnings on every single matroska file without Spherical
metadata.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroskadec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index c6e1a190a8..3953cd304e 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -1658,6 +1658,9 @@ static int mkv_parse_video_projection(AVStream *st, const MatroskaTrack *track) return AVERROR_INVALIDDATA; } break; + case MATROSKA_VIDEO_PROJECTION_TYPE_RECTANGULAR: + /* No Spherical metadata */ + return 0; default: av_log(NULL, AV_LOG_WARNING, "Unknown spherical metadata type %"PRIu64"\n", |