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 7e74348..e6737a7 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: