summaryrefslogtreecommitdiffstats
path: root/cfgparser.c
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-01 15:58:31 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-01 15:58:31 +0000
commit813e82a7eac31680db3ea431cc6758120579ce1c (patch)
tree89b64df8fcc634c53425ed03ef722bfce2250597 /cfgparser.c
parenta47ac752e5da5b4d056ca1d8a511c660aedbae4b (diff)
downloadmpv-813e82a7eac31680db3ea431cc6758120579ce1c.tar.bz2
mpv-813e82a7eac31680db3ea431cc6758120579ce1c.tar.xz
New aspect prescale code, parses aspect value from mpeg sequence header or commandline.
Removed X11_FULLSCREEN hack from mplayer.c and moved it to libvo/vo_xv.c. Added support for nominator[:/]denominator float values in cfg-parser, thanks for the code by Steve Davies. All around thanks to Steve for helping me understanding the whole stuff :) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2032 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'cfgparser.c')
-rw-r--r--cfgparser.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/cfgparser.c b/cfgparser.c
index feb2b2a7d1..83e4650230 100644
--- a/cfgparser.c
+++ b/cfgparser.c
@@ -152,8 +152,14 @@ static int read_option(char *opt, char *param)
goto err_missing_param;
tmp_float = strtod(param, &endptr);
+
+ if ((*endptr == ':') || (*endptr == '/'))
+ tmp_float /= strtod(endptr+1, &endptr);
+
if (*endptr) {
- printf("parameter must be a floating point number:\n");
+ printf("parameter must be a floating point number"
+ " or a ratio (numerator[:/]denominator):\n");
+
ret = ERR_MISSING_PARAM;
goto out;
}