[libav-devel] [PATCH 1/3] matroskadec: skip video projection parsing for non-spherical video streams

Sean McGovern gseanmcg at gmail.com
Thu Nov 2 03:10:15 CET 2017


---
 libavformat/matroskadec.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index c6e1a19..3743d4d 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1606,6 +1606,10 @@ static int mkv_parse_video_projection(AVStream *st, const MatroskaTrack *track)
     int ret;
     GetByteContext gb;
 
+    if (track->video.stereo_mode == MATROSKA_VIDEO_STEREOMODE_TYPE_NB) {
+    	return 0;
+    }
+
     bytestream2_init(&gb, track->video.projection.private.data,
                      track->video.projection.private.size);
 
-- 
2.7.4



More information about the libav-devel mailing list