[vlc-devel] [PATCH 07/18] essetup: use vlc_viewpoint_from_euler
Alexandre Janniaux
ajanni at videolabs.io
Wed Mar 31 09:25:39 UTC 2021
From: Alexandre Janniaux <alexandre.janniaux at gmail.com>
---
modules/demux/mp4/essetup.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/demux/mp4/essetup.c b/modules/demux/mp4/essetup.c
index 04b276964b..dfb6e4b7ef 100644
--- a/modules/demux/mp4/essetup.c
+++ b/modules/demux/mp4/essetup.c
@@ -401,9 +401,10 @@ int SetupVideoES( demux_t *p_demux, const mp4_track_t *p_track, const MP4_Box_t
const MP4_Box_t *p_prhd = MP4_BoxGet( p_sample, "sv3d/proj/prhd" );
if (p_prhd && BOXDATA(p_prhd))
{
- p_fmt->video.pose.yaw = BOXDATA(p_prhd)->f_pose_yaw_degrees;
- p_fmt->video.pose.pitch = BOXDATA(p_prhd)->f_pose_pitch_degrees;
- p_fmt->video.pose.roll = BOXDATA(p_prhd)->f_pose_roll_degrees;
+ vlc_viewpoint_from_euler(&p_fmt->video.pose,
+ BOXDATA(p_prhd)->f_pose_yaw_degrees,
+ BOXDATA(p_prhd)->f_pose_pitch_degrees,
+ BOXDATA(p_prhd)->f_pose_roll_degrees);
}
const MP4_Box_t *p_equi = MP4_BoxGet( p_sample, "sv3d/proj/equi" );
--
2.31.0
More information about the vlc-devel
mailing list