[Swfdec] libswfdec/swfdec_movie.c
Benjamin Otte
company at kemper.freedesktop.org
Wed Jul 11 07:11:31 PDT 2007
libswfdec/swfdec_movie.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
New commits:
diff-tree df8e44d9c530cc042e791cde0786cbea30afa373 (from f1b1b9d2d998bcc19cbd915b58a7f3d63a435a6b)
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Jul 11 15:57:49 2007 +0200
fix segfault when rotation isn't a finite value
diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c
index 53b47c2..5bde15a 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -143,8 +143,10 @@ swfdec_movie_update_matrix (SwfdecMovie
d = movie->xscale / swfdec_matrix_get_xscale (&movie->content->transform);
e = movie->yscale / swfdec_matrix_get_yscale (&movie->content->transform);
cairo_matrix_scale (&movie->matrix, d, e);
- d = movie->rotation - swfdec_matrix_get_rotation (&movie->content->transform);
- cairo_matrix_rotate (&movie->matrix, d * G_PI / 180);
+ if (finite (movie->rotation)) {
+ d = movie->rotation - swfdec_matrix_get_rotation (&movie->content->transform);
+ cairo_matrix_rotate (&movie->matrix, d * G_PI / 180);
+ }
swfdec_matrix_ensure_invertible (&movie->matrix, &movie->inverse_matrix);
swfdec_movie_update_extents (movie);
More information about the Swfdec
mailing list