[vlc-devel] commit: duplicate: fix bug of NumInRange(), i_stop always < 0 (Andy chenee )

git version control git at videolan.org
Sat Sep 5 10:54:45 CEST 2009


vlc | branch: 1.0-bugfix | Andy chenee <chenee543216 at gmail.com> | Fri Sep  4 01:21:52 2009 +0800| [1b0ea62564541acdec5065a23a51b9f5147701a5] | committer: Rémi Denis-Courmont 

duplicate: fix bug of NumInRange(), i_stop always < 0

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 5caa2baba2380b60502b04af7d64cde6e11df049)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1b0ea62564541acdec5065a23a51b9f5147701a5
---

 modules/stream_out/duplicate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/stream_out/duplicate.c b/modules/stream_out/duplicate.c
index d1939fc..6a50fdc 100644
--- a/modules/stream_out/duplicate.c
+++ b/modules/stream_out/duplicate.c
@@ -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




More information about the vlc-devel mailing list