summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2010-03-31 20:46:33 +0000
committerphintuka <phintuka>2010-03-31 20:46:33 +0000
commit37525a6cf5562b10d6fac2fd6e5b0f76c0963333 (patch)
tree84e88beb0424e76d751efdc583545051de0d6ab6
parenteae59e9d28b5384a311e18c756ed854382135e09 (diff)
downloadxineliboutput-37525a6cf5562b10d6fac2fd6e5b0f76c0963333.tar.gz
xineliboutput-37525a6cf5562b10d6fac2fd6e5b0f76c0963333.tar.bz2
fe_grab(): fixed clipping height (sf bug #2979641)
-rw-r--r--xine_frontend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xine_frontend.c b/xine_frontend.c
index 3da4d468..5475f27d 100644
--- a/xine_frontend.c
+++ b/xine_frontend.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: xine_frontend.c,v 1.115 2010-03-29 09:31:40 phintuka Exp $
+ * $Id: xine_frontend.c,v 1.116 2010-03-31 20:46:33 phintuka Exp $
*
*/
@@ -1982,8 +1982,8 @@ static char *fe_grab(frontend_t *this_gen, int *size, int jpeg,
/* validate parameters */
if ((quality < 0) || (quality > 100))
quality = 100;
- width = (MAX(16, MIN(width, 1920)) + 1) & ~1; /* 16...1920, even */
- height = (MAX(16, MIN(width, 1200)) + 1) & ~1; /* 16...1200, even */
+ width = (MAX(16, MIN(width, 1920)) + 1) & ~1; /* 16...1920, even */
+ height = (MAX(16, MIN(height, 1200)) + 1) & ~1; /* 16...1200, even */
/* get last frame */
this->stream->xine->port_ticket->acquire(this->stream->xine->port_ticket, 0);