changeset 5839:80af8b0589e1

Fix bug in LR's patch.
author atmos4
date Fri, 26 Apr 2002 15:48:18 +0000
parents d53251b98ed6
children 4e3cf9473628
files vobsub.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/vobsub.c	Fri Apr 26 15:35:00 2002 +0000
+++ b/vobsub.c	Fri Apr 26 15:48:18 2002 +0000
@@ -639,9 +639,9 @@
 vobsub_parse_custom(vobsub_t *vob, const char *line)
 {
     //custom colors: OFF/ON(0/1)
-    if ((strncmp("ON", line + 15, 2) == 0)||strncmp("1", line + 15, 1))
+    if ((strncmp("ON", line + 15, 2) == 0)||strncmp("1", line + 15, 1) == 0)
         vob->custom=1;
-    else if ((strncmp("OFF", line + 15, 3) == 0)||strncmp("0", line + 15, 1))
+    else if ((strncmp("OFF", line + 15, 3) == 0)||strncmp("0", line + 15, 1) == 0)
         vob->custom=0;
     else
         return -1;