[FFmpeg-cvslog] avformat/matroskadec: ProjectionPrivate is optional on Equirectangular projections

James Almer git at videolan.org
Fri Jan 27 00:30:57 EET 2017


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Jan 26 19:28:09 2017 -0300| [1ae39429e4c4ed2d5bdf9452441930e4c54f258e] | committer: James Almer

avformat/matroskadec: ProjectionPrivate is optional on Equirectangular projections

This reflects a recent change to the spec draft.

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

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

 libavformat/matroskadec.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 7e74348..e6737a7 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1913,8 +1913,6 @@ static int mkv_parse_video_projection(AVStream *st, const MatroskaTrack *track)
 
     switch (track->video.projection.type) {
     case MATROSKA_VIDEO_PROJECTION_TYPE_EQUIRECTANGULAR:
-        if (track->video.projection.private.size < 4)
-            return AVERROR_INVALIDDATA;
         projection = AV_SPHERICAL_EQUIRECTANGULAR;
         break;
     case MATROSKA_VIDEO_PROJECTION_TYPE_CUBEMAP:



More information about the ffmpeg-cvslog mailing list