1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-16 16:02:54 +02:00

Use libdvdread's define instead.

This commit is contained in:
Christophe Massiot 2001-12-29 22:22:01 +00:00
parent 1ad1939fe7
commit 9fb2aad3b0
2 changed files with 4 additions and 5 deletions

View File

@ -6,7 +6,7 @@
* It depends on: libdvdread for ifo files and block reading.
*****************************************************************************
* 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: Stéphane Borel <stef@via.ecp.fr>
*
@ -117,7 +117,7 @@ DECLARE_BUFFERS_NEWPACKET_SHARED( FLAGS, NB_LIFO );
DECLARE_BUFFERS_DELETEPACKET_SHARED( FLAGS, NB_LIFO, 1000 );
DECLARE_BUFFERS_NEWPES( FLAGS, NB_LIFO );
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 );
/*****************************************************************************
@ -878,7 +878,7 @@ static int DvdReadRead( input_thread_t * p_input,
data_packet_t * p_current = p_data_p;
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;

View File

@ -2,7 +2,7 @@
* input_dvdread.h: thread structure of the DVD plugin
*****************************************************************************
* 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: Stéphane Borel <stef@via.ecp.fr>
*
@ -35,7 +35,6 @@
#include "videolan/dvdread.h"
/* Logical block size for DVD-VIDEO */
#define DVD_LB_SIZE 2048
#define LB2OFF(x) ((off_t)(x) * (off_t)(DVD_VIDEO_LB_LEN))
#define OFF2LB(x) ((x) >> 11)