[vlc-commits] MP4: remove trailing spaces
Jean-Baptiste Kempf
git at videolan.org
Tue Apr 10 18:00:02 CEST 2012
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Apr 10 17:41:15 2012 +0200| [70f8744805498369be2c9304d75c731537422ac3] | committer: Jean-Baptiste Kempf
MP4: remove trailing spaces
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=70f8744805498369be2c9304d75c731537422ac3
---
modules/demux/mp4/libmp4.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index f65a5ba..82ff608 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -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 scale[2]; // scale factor; sx = scale[0] , sy = scale[1]
double translate[2];// amount to translate; tx = translate[0] , ty = translate[1]
-
+
int *matrix = p_box->data.p_tkhd->i_matrix;
-
+
translate[0] = conv_fx(matrix[6]);
translate[1] = conv_fx(matrix[7]);
-
+
scale[0] = sqrt(conv_fx(matrix[0]) * conv_fx(matrix[0]) +
conv_fx(matrix[3]) * conv_fx(matrix[3]));
scale[1] = sqrt(conv_fx(matrix[1]) * conv_fx(matrix[1]) +
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;
-
+
if (rotation < 0)
rotation += 360.;
More information about the vlc-commits
mailing list