Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
0bb015ee
Commit
0bb015ee
authored
Nov 13, 2001
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Got rid of DVDCSS_SEEK_INI in libdvdcss.
parent
ff09b15b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
29 deletions
+17
-29
ChangeLog.libdvdcss
ChangeLog.libdvdcss
+1
-0
extras/libdvdcss/libdvdcss.c
extras/libdvdcss/libdvdcss.c
+3
-4
extras/libdvdcss/videolan/dvdcss.h
extras/libdvdcss/videolan/dvdcss.h
+5
-8
plugins/dvd/dummy_dvdcss.h
plugins/dvd/dummy_dvdcss.h
+5
-15
plugins/dvd/input_dvd.c
plugins/dvd/input_dvd.c
+3
-2
No files found.
ChangeLog.libdvdcss
View file @
0bb015ee
...
@@ -9,6 +9,7 @@ HEAD
...
@@ -9,6 +9,7 @@ HEAD
1.0.0
1.0.0
Mon, 12 Nov 2001 17:14:29 +0100
Mon, 12 Nov 2001 17:14:29 +0100
* Got rid of DVDCSS_SEEK_INI.
* Removed the i_flags argument to dvdcss_open. Everything is done through
* Removed the i_flags argument to dvdcss_open. Everything is done through
environment variables now.
environment variables now.
* Fixed a buffer overflow in CSSAuth().
* Fixed a buffer overflow in CSSAuth().
...
...
extras/libdvdcss/libdvdcss.c
View file @
0bb015ee
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* libdvdcss.c: DVD reading library.
* libdvdcss.c: DVD reading library.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* Copyright (C) 1998-2001 VideoLAN
* $Id: libdvdcss.c,v 1.
19 2001/11/12 20:16:33
sam Exp $
* $Id: libdvdcss.c,v 1.
20 2001/11/13 01:25:05
sam Exp $
*
*
* Authors: Stphane Borel <stef@via.ecp.fr>
* Authors: Stphane Borel <stef@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
* Samuel Hocevar <sam@zoy.org>
...
@@ -201,9 +201,8 @@ extern char * dvdcss_error ( dvdcss_handle dvdcss )
...
@@ -201,9 +201,8 @@ extern char * dvdcss_error ( dvdcss_handle dvdcss )
extern
int
dvdcss_seek
(
dvdcss_handle
dvdcss
,
int
i_blocks
,
int
i_flags
)
extern
int
dvdcss_seek
(
dvdcss_handle
dvdcss
,
int
i_blocks
,
int
i_flags
)
{
{
/* title cracking method is too slow to be used at each seek */
/* title cracking method is too slow to be used at each seek */
if
(
(
(
i_flags
&
DVDCSS_SEEK_MPEG
)
if
(
!
(
i_flags
&
DVDCSS_SEEK_MPEG
)
&&
(
dvdcss
->
i_method
!=
DVDCSS_METHOD_TITLE
)
)
||
(
dvdcss
->
i_method
!=
DVDCSS_METHOD_TITLE
)
)
||
(
i_flags
&
DVDCSS_SEEK_INI
)
)
{
{
/* check the title key */
/* check the title key */
if
(
dvdcss_title
(
dvdcss
,
i_blocks
)
)
if
(
dvdcss_title
(
dvdcss
,
i_blocks
)
)
...
...
extras/libdvdcss/videolan/dvdcss.h
View file @
0bb015ee
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* libdvdcss.h: DVD reading library, exported functions.
* libdvdcss.h: DVD reading library, exported functions.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* Copyright (C) 1998-2001 VideoLAN
* $Id: dvdcss.h,v 1.
8 2001/11/12 20:16:33
sam Exp $
* $Id: dvdcss.h,v 1.
9 2001/11/13 01:25:05
sam Exp $
*
*
* Authors: Stphane Borel <stef@via.ecp.fr>
* Authors: Stphane Borel <stef@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
* Samuel Hocevar <sam@zoy.org>
...
@@ -28,16 +28,13 @@
...
@@ -28,16 +28,13 @@
typedef
struct
dvdcss_s
*
dvdcss_handle
;
typedef
struct
dvdcss_s
*
dvdcss_handle
;
/*****************************************************************************
/*****************************************************************************
*
F
lags
*
Defines and f
lags
*****************************************************************************/
*****************************************************************************/
#define DVDCSS_
NOFLAGS 0
#define DVDCSS_
BLOCK_SIZE 2048
#define DVDCSS_NOFLAGS 0
#define DVDCSS_READ_DECRYPT (1 << 0)
#define DVDCSS_READ_DECRYPT (1 << 0)
#define DVDCSS_SEEK_MPEG (1 << 0)
#define DVDCSS_SEEK_INI (1 << 0)
#define DVDCSS_SEEK_MPEG (2 << 0)
#define DVDCSS_BLOCK_SIZE 2048
/*****************************************************************************
/*****************************************************************************
* Exported prototypes
* Exported prototypes
...
...
plugins/dvd/dummy_dvdcss.h
View file @
0bb015ee
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* dummy_dvdcss.h: Dummy libdvdcss header.
* dummy_dvdcss.h: Dummy libdvdcss header.
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: dummy_dvdcss.h,v 1.
3 2001/11/12 20:16:33
sam Exp $
* $Id: dummy_dvdcss.h,v 1.
4 2001/11/13 01:25:05
sam Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -27,23 +27,13 @@
...
@@ -27,23 +27,13 @@
typedef
struct
dvdcss_s
*
dvdcss_handle
;
typedef
struct
dvdcss_s
*
dvdcss_handle
;
/*****************************************************************************
/*****************************************************************************
*
F
lags
*
Defines and f
lags
*****************************************************************************/
*****************************************************************************/
#define DVDCSS_NOFLAGS 0
#define DVDCSS_READ_DECRYPT (1 << 0)
#define DVDCSS_SEEK_INI (1 << 0)
#define DVDCSS_SEEK_MPEG (2 << 0)
#define DVDCSS_BLOCK_SIZE 2048
#define DVDCSS_BLOCK_SIZE 2048
/*****************************************************************************
#define DVDCSS_NOFLAGS 0
* libdvdcss method: used like init flags
#define DVDCSS_READ_DECRYPT (1 << 0)
*****************************************************************************/
#define DVDCSS_SEEK_MPEG (1 << 0)
#define DVDCSS_KEY 0
#define DVDCSS_DISC 1
#define DVDCSS_TITLE 2
/*****************************************************************************
/*****************************************************************************
* Exported prototypes
* Exported prototypes
...
...
plugins/dvd/input_dvd.c
View file @
0bb015ee
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* -dvd_udf to find files
* -dvd_udf to find files
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* Copyright (C) 1998-2001 VideoLAN
* $Id: input_dvd.c,v 1.9
6 2001/11/12 20:16:33
sam Exp $
* $Id: input_dvd.c,v 1.9
7 2001/11/13 01:25:05
sam Exp $
*
*
* Author: Stphane Borel <stef@via.ecp.fr>
* Author: Stphane Borel <stef@via.ecp.fr>
*
*
...
@@ -482,7 +482,8 @@ static int DVDSetArea( input_thread_t * p_input, input_area_t * p_area )
...
@@ -482,7 +482,8 @@ static int DVDSetArea( input_thread_t * p_input, input_area_t * p_area )
/* Force libdvdcss to check its title key.
/* Force libdvdcss to check its title key.
* It is only useful for title cracking method. Methods using the
* It is only useful for title cracking method. Methods using the
* decrypted disc key are fast enough to check the key at each seek */
* decrypted disc key are fast enough to check the key at each seek */
if
(
dvdcss_seek
(
p_dvd
->
dvdhandle
,
p_dvd
->
i_start
,
DVDCSS_SEEK_INI
)
<
0
)
if
(
dvdcss_seek
(
p_dvd
->
dvdhandle
,
p_dvd
->
i_start
,
DVDCSS_NOFLAGS
)
<
0
)
{
{
intf_ErrMsg
(
"dvd error: %s"
,
dvdcss_error
(
p_dvd
->
dvdhandle
)
);
intf_ErrMsg
(
"dvd error: %s"
,
dvdcss_error
(
p_dvd
->
dvdhandle
)
);
return
-
1
;
return
-
1
;
...
...
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