summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-03-13 23:08:18 +0000
committerphintuka <phintuka>2008-03-13 23:08:18 +0000
commit3e0fe7fe2906c928efe53296cdc3b9f9fd7b4c06 (patch)
tree73d17d3e23e6033554194a514467ad05745e195e
parentb312e43f6765192e15a812d200bf1000eb299944 (diff)
downloadxineliboutput-3e0fe7fe2906c928efe53296cdc3b9f9fd7b4c06.tar.gz
xineliboutput-3e0fe7fe2906c928efe53296cdc3b9f9fd7b4c06.tar.bz2
Added possibility to set aspect ratio without locale-specific decimal point
-rw-r--r--xine_post_swscale.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xine_post_swscale.c b/xine_post_swscale.c
index 87f3bd5e..26ca43fc 100644
--- a/xine_post_swscale.c
+++ b/xine_post_swscale.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_post_swscale.c,v 1.6 2008-02-28 06:06:07 phintuka Exp $
+ * $Id: xine_post_swscale.c,v 1.7 2008-03-13 23:08:18 phintuka Exp $
*
* Simple (faster) resize for avisynth
* Copyright (C) 2002 Tom Barry
@@ -1675,6 +1675,9 @@ static int warp_set_parameters(xine_post_t *this_gen, void *param_gen)
memcpy(&this->config, params, sizeof(warp_parameters_t));
this->input_width = this->input_height = 0;
+ if(this->config.output_aspect > 999)
+ this->config.output_aspect /= 1000.0;
+
DBG("warp_set_parameters: "
"output_width=%d, output_height=%d, output_aspect=%4.3lf, no_downscaling=%d\n",
this->config.output_width, this->config.output_height, this->config.output_aspect,