You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
Merge commit '251849f06ce36ce8dc076e0fca2922119fa7e39e'
* commit '251849f06ce36ce8dc076e0fca2922119fa7e39e':
mkv: Add support for Spherical Video elements
See 445204cd57
Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user