diff options
author | James Almer <jamrial@gmail.com> | 2017-10-17 16:47:30 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-10-17 16:47:30 -0300 |
commit | 68727a1dc05c5d8a3016da8867d1734e02f45d01 (patch) | |
tree | 93ecec27a7a6198c1d8c596a4c292057459d4145 /libavformat/matroskadec.c | |
parent | 1b6803b79549567b9261208a1c21391e2da570ce (diff) | |
parent | 251849f06ce36ce8dc076e0fca2922119fa7e39e (diff) | |
download | ffmpeg-streaming-68727a1dc05c5d8a3016da8867d1734e02f45d01.zip ffmpeg-streaming-68727a1dc05c5d8a3016da8867d1734e02f45d01.tar.gz |
Merge commit '251849f06ce36ce8dc076e0fca2922119fa7e39e'
* commit '251849f06ce36ce8dc076e0fca2922119fa7e39e':
mkv: Add support for Spherical Video elements
See 445204cd5777e029a6674ed0739777817eda5646
Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r-- | libavformat/matroskadec.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 94a56eb..cdb2e20 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -1996,11 +1996,12 @@ static int mkv_parse_video_projection(AVStream *st, const MatroskaTrack *track) spherical = av_spherical_alloc(&spherical_size); if (!spherical) return AVERROR(ENOMEM); + spherical->projection = projection; - spherical->yaw = (int32_t)(track->video.projection.yaw * (1 << 16)); - spherical->pitch = (int32_t)(track->video.projection.pitch * (1 << 16)); - spherical->roll = (int32_t)(track->video.projection.roll * (1 << 16)); + spherical->yaw = (int32_t) (track->video.projection.yaw * (1 << 16)); + spherical->pitch = (int32_t) (track->video.projection.pitch * (1 << 16)); + spherical->roll = (int32_t) (track->video.projection.roll * (1 << 16)); spherical->padding = padding; |