[vlc-commits] rotate: fix uninitialized motion angle
Pierre Ynard
git at videolan.org
Sun Oct 28 00:19:15 CEST 2012
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun Oct 28 00:16:49 2012 +0200| [35f85be0d72b91a5ec1131e06ca428f93cddd5ab] | committer: Pierre Ynard
rotate: fix uninitialized motion angle
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=35f85be0d72b91a5ec1131e06ca428f93cddd5ab
---
modules/video_filter/rotate.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/video_filter/rotate.c b/modules/video_filter/rotate.c
index 422a911..2789093 100644
--- a/modules/video_filter/rotate.c
+++ b/modules/video_filter/rotate.c
@@ -153,6 +153,8 @@ static int Create( vlc_object_t *p_this )
free( p_filter->p_sys );
return VLC_EGENERIC;
}
+ p_sys->i_angle = 0;
+ cache_trigo( p_sys->i_angle, &p_sys->i_sin, &p_sys->i_cos );
}
else
{
More information about the vlc-commits
mailing list