Commit 68727a1d authored by James Almer's avatar James Almer

Merge commit '251849f0'

* commit '251849f0':
  mkv: Add support for Spherical Video elements

See 445204cdMerged-by: 's avatarJames Almer <jamrial@gmail.com>
parents 1b6803b7 251849f0
...@@ -1996,11 +1996,12 @@ static int mkv_parse_video_projection(AVStream *st, const MatroskaTrack *track) ...@@ -1996,11 +1996,12 @@ static int mkv_parse_video_projection(AVStream *st, const MatroskaTrack *track)
spherical = av_spherical_alloc(&spherical_size); spherical = av_spherical_alloc(&spherical_size);
if (!spherical) if (!spherical)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
spherical->projection = projection; spherical->projection = projection;
spherical->yaw = (int32_t)(track->video.projection.yaw * (1 << 16)); spherical->yaw = (int32_t) (track->video.projection.yaw * (1 << 16));
spherical->pitch = (int32_t)(track->video.projection.pitch * (1 << 16)); spherical->pitch = (int32_t) (track->video.projection.pitch * (1 << 16));
spherical->roll = (int32_t)(track->video.projection.roll * (1 << 16)); spherical->roll = (int32_t) (track->video.projection.roll * (1 << 16));
spherical->padding = padding; spherical->padding = padding;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment