demux_mkv: corrected direction of ProjectionPoseRoll rotation

See: ietf-wg-cellar/matroska-specification#822
Fixes: #13830
This commit is contained in:
ls-2037 2024-04-07 13:21:52 -04:00 committed by Kacper Michajłow
parent 6a8b130c6f
commit f729bd9e05
1 changed files with 1 additions and 1 deletions

View File

@ -1576,7 +1576,7 @@ static int demux_mkv_open_video(demuxer_t *demuxer, mkv_track_t *track)
sh_v->color = track->color;
if (track->v_projection_pose_roll_set) {
int rotate = lrintf(fmodf(fmodf(track->v_projection_pose_roll, 360) + 360, 360));
int rotate = lrintf(fmodf(fmodf(-1 * track->v_projection_pose_roll, 360) + 360, 360));
sh_v->rotate = rotate;
}