avformat/matroskadec: ProjectionPrivate is optional on Equirectangular projections
authorJames Almer <jamrial@gmail.com>
Thu, 26 Jan 2017 22:28:09 +0000 (19:28 -0300)
committerJames Almer <jamrial@gmail.com>
Thu, 26 Jan 2017 22:28:19 +0000 (19:28 -0300)
This reflects a recent change to the spec draft.

Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/matroskadec.c

index 7e74348b2a1b8833ed5fa67fce384b8c430d48d6..e6737a70b27b923c9158014e7a5f3f748110f81a 100644 (file)
@@ -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: