Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
70f87448
Commit
70f87448
authored
Apr 10, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MP4: remove trailing spaces
parent
c55ac4fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+5
-5
No files found.
modules/demux/mp4/libmp4.c
View file @
70f87448
...
@@ -720,19 +720,19 @@ static int MP4_ReadBox_tkhd( stream_t *p_stream, MP4_Box_t *p_box )
...
@@ -720,19 +720,19 @@ static int MP4_ReadBox_tkhd( stream_t *p_stream, MP4_Box_t *p_box )
double
rotation
;
//angle in degrees to be rotated clockwise
double
rotation
;
//angle in degrees to be rotated clockwise
double
scale
[
2
];
// scale factor; sx = scale[0] , sy = scale[1]
double
scale
[
2
];
// scale factor; sx = scale[0] , sy = scale[1]
double
translate
[
2
];
// amount to translate; tx = translate[0] , ty = translate[1]
double
translate
[
2
];
// amount to translate; tx = translate[0] , ty = translate[1]
int
*
matrix
=
p_box
->
data
.
p_tkhd
->
i_matrix
;
int
*
matrix
=
p_box
->
data
.
p_tkhd
->
i_matrix
;
translate
[
0
]
=
conv_fx
(
matrix
[
6
]);
translate
[
0
]
=
conv_fx
(
matrix
[
6
]);
translate
[
1
]
=
conv_fx
(
matrix
[
7
]);
translate
[
1
]
=
conv_fx
(
matrix
[
7
]);
scale
[
0
]
=
sqrt
(
conv_fx
(
matrix
[
0
])
*
conv_fx
(
matrix
[
0
])
+
scale
[
0
]
=
sqrt
(
conv_fx
(
matrix
[
0
])
*
conv_fx
(
matrix
[
0
])
+
conv_fx
(
matrix
[
3
])
*
conv_fx
(
matrix
[
3
]));
conv_fx
(
matrix
[
3
])
*
conv_fx
(
matrix
[
3
]));
scale
[
1
]
=
sqrt
(
conv_fx
(
matrix
[
1
])
*
conv_fx
(
matrix
[
1
])
+
scale
[
1
]
=
sqrt
(
conv_fx
(
matrix
[
1
])
*
conv_fx
(
matrix
[
1
])
+
conv_fx
(
matrix
[
4
])
*
conv_fx
(
matrix
[
4
]));
conv_fx
(
matrix
[
4
])
*
conv_fx
(
matrix
[
4
]));
rotation
=
atan2
(
conv_fx
(
matrix
[
1
])
/
scale
[
1
],
conv_fx
(
matrix
[
0
])
/
scale
[
0
])
*
180
/
M_PI
;
rotation
=
atan2
(
conv_fx
(
matrix
[
1
])
/
scale
[
1
],
conv_fx
(
matrix
[
0
])
/
scale
[
0
])
*
180
/
M_PI
;
if
(
rotation
<
0
)
if
(
rotation
<
0
)
rotation
+=
360
.;
rotation
+=
360
.;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment