diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-07-25 11:19:41 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-02 04:14:45 +0200 |
commit | 0a5ff5eef340cc4b132b036690ee168cd4bd8f4a (patch) | |
tree | 16c170f5807b72b775deca4572e3892fc8149a08 /libvo | |
parent | 5f5a12a939ef1ce1d75cf72f167cb0baa9d310c2 (diff) | |
download | mpv-0a5ff5eef340cc4b132b036690ee168cd4bd8f4a.tar.bz2 mpv-0a5ff5eef340cc4b132b036690ee168cd4bd8f4a.tar.xz |
vo_corevideo: avoid dangerous casts
Declare variables with proper types to avoid dangerous pointer casts.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31805 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_corevideo.m | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libvo/vo_corevideo.m b/libvo/vo_corevideo.m index 14d664cdd3..aa7bffe310 100644 --- a/libvo/vo_corevideo.m +++ b/libvo/vo_corevideo.m @@ -685,8 +685,7 @@ static int control(uint32_t request, void *data) */ - (void)reshape { - uint32_t d_width; - uint32_t d_height; + int d_width, d_height; NSRect frame = [self frame]; vo_dwidth = frame.size.width; @@ -702,7 +701,7 @@ static int control(uint32_t request, void *data) //set texture frame if(vo_keepaspect) { - aspect( (int *)&d_width, (int *)&d_height, A_WINZOOM); + aspect(&d_width, &d_height, A_WINZOOM); textureFrame = NSMakeRect((vo_dwidth - d_width) / 2, (vo_dheight - d_height) / 2, d_width, d_height); } |