summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2012-10-30 17:09:14 +0000
committerwm4 <wm4@nowhere>2012-10-31 22:36:37 +0100
commit3bebbe066d06ee276c063c897805ebdc8b2825a4 (patch)
tree292943ff8fdd2f7b34ec20f8e3285cfdee97ffed
parent334db4cad219735c0327c079597c7e37fb9dce8b (diff)
downloadmpv-3bebbe066d06ee276c063c897805ebdc8b2825a4.tar.bz2
mpv-3bebbe066d06ee276c063c897805ebdc8b2825a4.tar.xz
geometry: remove useless NULL check
Remove useless checks, the code would crash all over of widw/widh were NULL. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35292 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/geometry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvo/geometry.c b/libvo/geometry.c
index 4bc08f811d..941528aea9 100644
--- a/libvo/geometry.c
+++ b/libvo/geometry.c
@@ -90,8 +90,8 @@ int geometry(int *xpos, int *ypos, int *widw, int *widh, int scrw, int scrh)
"height: %i, xoff: %s%i, yoff: %s%i, xper: %i, yper: %i\n",
width, height, xsign, xoff, ysign, yoff, xper, yper);
- if (width > 0 && widw) *widw = width;
- if (height > 0 && widh) *widh = height;
+ if (width > 0) *widw = width;
+ if (height > 0) *widh = height;
if(xoff != INT_MIN && xsign[0] == '-') xoff = scrw - *widw - xoff;
if(yoff != INT_MIN && ysign[0] == '-') yoff = scrh - *widh - yoff;