duplicate: fix bug of NumInRange(), i_stop always < 0
authorAndy chenee <chenee543216@gmail.com>
Thu, 3 Sep 2009 17:21:52 +0000 (01:21 +0800)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 5 Sep 2009 08:53:57 +0000 (11:53 +0300)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/stream_out/duplicate.c

index d1939fc..6a50fdc 100644 (file)
@@ -310,7 +310,7 @@ static bool NumInRange( char *psz_range, int i_num )
         i_start = strtol( psz_range, &end, 0 );
         if( end == psz_range ) i_start = i_num;
 
-        i_stop  = strtol( psz,       &end, 0 );
+        i_stop  = strtol( psz+1,       &end, 0 );
         if( end == psz_range ) i_stop = i_num;
     }
     else