Commit 9fb2aad3 authored by Christophe Massiot's avatar Christophe Massiot

Use libdvdread's define instead.

parent 1ad1939f
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* It depends on: libdvdread for ifo files and block reading. * It depends on: libdvdread for ifo files and block reading.
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: input_dvdread.c,v 1.9 2001/12/29 15:40:53 massiot Exp $ * $Id: input_dvdread.c,v 1.10 2001/12/29 22:22:01 massiot Exp $
* *
* Author: Stphane Borel <stef@via.ecp.fr> * Author: Stphane Borel <stef@via.ecp.fr>
* *
...@@ -117,7 +117,7 @@ DECLARE_BUFFERS_NEWPACKET_SHARED( FLAGS, NB_LIFO ); ...@@ -117,7 +117,7 @@ DECLARE_BUFFERS_NEWPACKET_SHARED( FLAGS, NB_LIFO );
DECLARE_BUFFERS_DELETEPACKET_SHARED( FLAGS, NB_LIFO, 1000 ); DECLARE_BUFFERS_DELETEPACKET_SHARED( FLAGS, NB_LIFO, 1000 );
DECLARE_BUFFERS_NEWPES( FLAGS, NB_LIFO ); DECLARE_BUFFERS_NEWPES( FLAGS, NB_LIFO );
DECLARE_BUFFERS_DELETEPES( FLAGS, NB_LIFO, 1000 ); DECLARE_BUFFERS_DELETEPES( FLAGS, NB_LIFO, 1000 );
DECLARE_BUFFERS_TOIO( FLAGS, DVD_LB_SIZE ); DECLARE_BUFFERS_TOIO( FLAGS, DVD_VIDEO_LB_LEN );
DECLARE_BUFFERS_SHAREBUFFER( FLAGS ); DECLARE_BUFFERS_SHAREBUFFER( FLAGS );
/***************************************************************************** /*****************************************************************************
...@@ -878,7 +878,7 @@ static int DvdReadRead( input_thread_t * p_input, ...@@ -878,7 +878,7 @@ static int DvdReadRead( input_thread_t * p_input,
data_packet_t * p_current = p_data_p; data_packet_t * p_current = p_data_p;
i_pos = 0; i_pos = 0;
while( i_pos < DVD_LB_SIZE ) while( i_pos < DVD_VIDEO_LB_LEN )
{ {
pi_cur = (u8*)p_vec[i_iovec].iov_base + i_pos; pi_cur = (u8*)p_vec[i_iovec].iov_base + i_pos;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_dvdread.h: thread structure of the DVD plugin * input_dvdread.h: thread structure of the DVD plugin
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2001 VideoLAN * Copyright (C) 1999-2001 VideoLAN
* $Id: input_dvdread.h,v 1.2 2001/12/26 00:01:18 massiot Exp $ * $Id: input_dvdread.h,v 1.3 2001/12/29 22:22:01 massiot Exp $
* *
* Author: Stphane Borel <stef@via.ecp.fr> * Author: Stphane Borel <stef@via.ecp.fr>
* *
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include "videolan/dvdread.h" #include "videolan/dvdread.h"
/* Logical block size for DVD-VIDEO */ /* Logical block size for DVD-VIDEO */
#define DVD_LB_SIZE 2048
#define LB2OFF(x) ((off_t)(x) * (off_t)(DVD_VIDEO_LB_LEN)) #define LB2OFF(x) ((off_t)(x) * (off_t)(DVD_VIDEO_LB_LEN))
#define OFF2LB(x) ((x) >> 11) #define OFF2LB(x) ((x) >> 11)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment