Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
99722c93
Commit
99722c93
authored
Nov 13, 2001
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Damn recursion! Fixed an infinite loop in libdvdcss.
parent
0bb015ee
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
extras/libdvdcss/css.c
extras/libdvdcss/css.c
+3
-3
extras/libdvdcss/libdvdcss.c
extras/libdvdcss/libdvdcss.c
+3
-5
extras/libdvdcss/libdvdcss.h
extras/libdvdcss/libdvdcss.h
+7
-1
No files found.
extras/libdvdcss/css.c
View file @
99722c93
...
...
@@ -2,7 +2,7 @@
* css.c: Functions for DVD authentification and unscrambling
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: css.c,v 1.1
5 2001/11/12 20:16:32
sam Exp $
* $Id: css.c,v 1.1
6 2001/11/13 02:03:46
sam Exp $
*
* Author: Stphane Borel <stef@via.ecp.fr>
* Hkan Hjort <d95hjort@dtek.chalmers.se>
...
...
@@ -386,8 +386,8 @@ int CSSGetTitleKey( dvdcss_handle dvdcss, int i_pos )
do
{
i_pos
=
dvdcss_seek
(
dvdcss
,
i_pos
,
DVDCSS_NOFLAGS
);
if
(
dvdcss_read
(
dvdcss
,
p_buf
,
1
,
DVDCSS_NOFLAGS
)
!=
1
)
break
;
i_pos
=
_dvdcss_seek
(
dvdcss
,
i_pos
);
if
(
_dvdcss_read
(
dvdcss
,
p_buf
,
1
)
!=
1
)
break
;
/* Stop when we find a non MPEG stream block */
if
(
memcmp
(
p_buf
,
p_packstart
,
4
)
)
...
...
extras/libdvdcss/libdvdcss.c
View file @
99722c93
...
...
@@ -2,7 +2,7 @@
* libdvdcss.c: DVD reading library.
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: libdvdcss.c,v 1.2
0 2001/11/13 01:25:05
sam Exp $
* $Id: libdvdcss.c,v 1.2
1 2001/11/13 02:03:46
sam Exp $
*
* Authors: Stphane Borel <stef@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -61,8 +61,6 @@
*****************************************************************************/
static
int
_dvdcss_open
(
dvdcss_handle
,
char
*
psz_target
);
static
int
_dvdcss_close
(
dvdcss_handle
);
static
int
_dvdcss_seek
(
dvdcss_handle
,
int
i_blocks
);
static
int
_dvdcss_read
(
dvdcss_handle
,
void
*
p_buffer
,
int
i_blocks
);
static
int
_dvdcss_readv
(
dvdcss_handle
,
struct
iovec
*
p_iovec
,
int
i_blocks
);
/*****************************************************************************
...
...
@@ -499,7 +497,7 @@ static int _dvdcss_close ( dvdcss_handle dvdcss )
return
0
;
}
static
int
_dvdcss_seek
(
dvdcss_handle
dvdcss
,
int
i_blocks
)
int
_dvdcss_seek
(
dvdcss_handle
dvdcss
,
int
i_blocks
)
{
#if defined( WIN32 )
dvdcss
->
i_seekpos
=
i_blocks
;
...
...
@@ -543,7 +541,7 @@ static int _dvdcss_seek ( dvdcss_handle dvdcss, int i_blocks )
}
static
int
_dvdcss_read
(
dvdcss_handle
dvdcss
,
void
*
p_buffer
,
int
i_blocks
)
int
_dvdcss_read
(
dvdcss_handle
dvdcss
,
void
*
p_buffer
,
int
i_blocks
)
{
#if defined( WIN32 )
if
(
WIN2K
)
...
...
extras/libdvdcss/libdvdcss.h
View file @
99722c93
...
...
@@ -2,7 +2,7 @@
* private.h: private DVD reading library data
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: libdvdcss.h,v 1.
9 2001/11/12 20:16:33
sam Exp $
* $Id: libdvdcss.h,v 1.
10 2001/11/13 02:03:46
sam Exp $
*
* Authors: Stphane Borel <stef@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -61,6 +61,12 @@ struct dvdcss_s
#define DVDCSS_METHOD_DISC 1
#define DVDCSS_METHOD_TITLE 2
/*****************************************************************************
* Functions used across the library
*****************************************************************************/
int
_dvdcss_seek
(
dvdcss_handle
,
int
i_blocks
);
int
_dvdcss_read
(
dvdcss_handle
,
void
*
p_buffer
,
int
i_blocks
);
/*****************************************************************************
* Error management
*****************************************************************************/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment