Commit b9574a95 authored by Stéphane Borel's avatar Stéphane Borel

*** empty log message ***

parent 03d925fd
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* dvd_ifo.c: Functions for ifo parsing * dvd_ifo.c: Functions for ifo parsing
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2001 VideoLAN * Copyright (C) 1999-2001 VideoLAN
* $Id: dvd_ifo.c,v 1.1 2001/02/08 04:43:27 sam Exp $ * $Id: dvd_ifo.c,v 1.2 2001/02/08 08:08:03 stef Exp $
* *
* Author: Stphane Borel <stef@via.ecp.fr> * Author: Stphane Borel <stef@via.ecp.fr>
* *
...@@ -592,12 +592,14 @@ static vmgi_mat_t ReadVMGInfMat( ifo_t* p_ifo ) ...@@ -592,12 +592,14 @@ static vmgi_mat_t ReadVMGInfMat( ifo_t* p_ifo )
GETS( &mat.i_video_atrt ); GETS( &mat.i_video_atrt );
FLUSH( 1 ); FLUSH( 1 );
GETC( &mat.i_audio_nb ); GETC( &mat.i_audio_nb );
//fprintf( stderr, "vmgi audio nb : %d\n", mat.i_audio_nb );
for( i=0 ; i < 8 ; i++ ) for( i=0 ; i < 8 ; i++ )
{ {
GETLL( &mat.pi_audio_atrt[i] ); GETLL( &mat.pi_audio_atrt[i] );
} }
FLUSH( 17 ); FLUSH( 17 );
GETC( &mat.i_subpic_nb ); GETC( &mat.i_subpic_nb );
//fprintf( stderr, "vmgi subpic nb : %d\n", mat.i_subpic_nb );
for( i=0 ; i < mat.i_subpic_nb ; i++ ) for( i=0 ; i < mat.i_subpic_nb ; i++ )
{ {
GET( &mat.pi_subpic_atrt[i], 6 ); GET( &mat.pi_subpic_atrt[i], 6 );
...@@ -744,12 +746,14 @@ static vmg_vts_atrt_t ReadVTSAttr( ifo_t* p_ifo ) ...@@ -744,12 +746,14 @@ static vmg_vts_atrt_t ReadVTSAttr( ifo_t* p_ifo )
GETS( &atrt.p_vts_atrt[i].i_vtsm_video_atrt ); GETS( &atrt.p_vts_atrt[i].i_vtsm_video_atrt );
FLUSH( 1 ); FLUSH( 1 );
GETC( &atrt.p_vts_atrt[i].i_vtsm_audio_nb ); GETC( &atrt.p_vts_atrt[i].i_vtsm_audio_nb );
//fprintf( stderr, "m audio nb : %d\n", atrt.p_vts_atrt[i].i_vtsm_audio_nb );
for( j=0 ; j<8 ; j++ ) for( j=0 ; j<8 ; j++ )
{ {
GETLL( &atrt.p_vts_atrt[i].pi_vtsm_audio_atrt[j] ); GETLL( &atrt.p_vts_atrt[i].pi_vtsm_audio_atrt[j] );
} }
FLUSH( 17 ); FLUSH( 17 );
GETC( &atrt.p_vts_atrt[i].i_vtsm_subpic_nb ); GETC( &atrt.p_vts_atrt[i].i_vtsm_subpic_nb );
//fprintf( stderr, "m subp nb : %d\n", atrt.p_vts_atrt[i].i_vtsm_subpic_nb );
for( j=0 ; j<28 ; j++ ) for( j=0 ; j<28 ; j++ )
{ {
GET( &atrt.p_vts_atrt[i].pi_vtsm_subpic_atrt[j], 6 ); GET( &atrt.p_vts_atrt[i].pi_vtsm_subpic_atrt[j], 6 );
...@@ -759,13 +763,15 @@ static vmg_vts_atrt_t ReadVTSAttr( ifo_t* p_ifo ) ...@@ -759,13 +763,15 @@ static vmg_vts_atrt_t ReadVTSAttr( ifo_t* p_ifo )
GETS( &atrt.p_vts_atrt[i].i_vtstt_video_atrt ); GETS( &atrt.p_vts_atrt[i].i_vtstt_video_atrt );
FLUSH( 1 ); FLUSH( 1 );
GETL( &atrt.p_vts_atrt[i].i_vtstt_audio_nb ); GETL( &atrt.p_vts_atrt[i].i_vtstt_audio_nb );
//fprintf( stderr, "tt audio nb : %d\n", atrt.p_vts_atrt[i].i_vtstt_audio_nb );
for( j=0 ; j<8 ; j++ ) for( j=0 ; j<8 ; j++ )
{ {
GETLL( &atrt.p_vts_atrt[i].pi_vtstt_audio_atrt[j] ); GETLL( &atrt.p_vts_atrt[i].pi_vtstt_audio_atrt[j] );
} }
FLUSH( 17 ); FLUSH( 17 );
GETC( &atrt.p_vts_atrt[i].i_vtstt_subpic_nb ); GETC( &atrt.p_vts_atrt[i].i_vtstt_subpic_nb );
for( j=0 ; j<atrt.p_vts_atrt[i].i_vtstt_subpic_nb ; j++ ) //fprintf( stderr, "tt subp nb : %d\n", atrt.p_vts_atrt[i].i_vtstt_subpic_nb );
for( j=0 ; j<28/*atrt.p_vts_atrt[i].i_vtstt_subpic_nb*/ ; j++ )
{ {
GET( &atrt.p_vts_atrt[i].pi_vtstt_subpic_atrt[j], 6 ); GET( &atrt.p_vts_atrt[i].pi_vtstt_subpic_atrt[j], 6 );
/* FIXME : Fix endianness issue here */ /* FIXME : Fix endianness issue here */
...@@ -888,12 +894,14 @@ static vtsi_mat_t ReadVTSInfMat( ifo_t* p_ifo ) ...@@ -888,12 +894,14 @@ static vtsi_mat_t ReadVTSInfMat( ifo_t* p_ifo )
GETS( &mat.i_video_atrt ); GETS( &mat.i_video_atrt );
FLUSH( 1 ); FLUSH( 1 );
GETC( &mat.i_audio_nb ); GETC( &mat.i_audio_nb );
//fprintf( stderr, "vtsi audio nb : %d\n", mat.i_audio_nb );
for( i=0 ; i<8 ; i++ ) for( i=0 ; i<8 ; i++ )
{ {
GETLL( &mat.pi_audio_atrt[i] ); GETLL( &mat.pi_audio_atrt[i] );
} }
FLUSH( 17 ); FLUSH( 17 );
GETC( &mat.i_subpic_nb ); GETC( &mat.i_subpic_nb );
//fprintf( stderr, "vtsi subpic nb : %d\n", mat.i_subpic_nb );
for( i=0 ; i<mat.i_subpic_nb ; i++ ) for( i=0 ; i<mat.i_subpic_nb ; i++ )
{ {
GET( &mat.pi_subpic_atrt[i], 6 ); GET( &mat.pi_subpic_atrt[i], 6 );
......
...@@ -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.2 2001/02/08 06:41:56 stef Exp $ * $Id: input_dvd.c,v 1.3 2001/02/08 08:08:03 stef Exp $
* *
* Author: Stphane Borel <stef@via.ecp.fr> * Author: Stphane Borel <stef@via.ecp.fr>
* *
...@@ -185,8 +185,7 @@ static void DVDInit( input_thread_t * p_input ) ...@@ -185,8 +185,7 @@ static void DVDInit( input_thread_t * p_input )
p_method->css = CSSInit( p_input->i_handle ); p_method->css = CSSInit( p_input->i_handle );
p_method->css.i_title_nb = p_method->ifo.vmg.mat.i_tts_nb; p_method->css.i_title_nb = p_method->ifo.vmg.mat.i_tts_nb;
if( (p_method->css.p_title_key = if( (p_method->css.p_title_key =
malloc( p_method->css.i_title_nb * malloc( p_method->css.i_title_nb *sizeof(title_key_t) ) ) == NULL )
sizeof(p_method->css.p_title_key) ) ) == NULL )
{ {
intf_ErrMsg( "Out of memory" ); intf_ErrMsg( "Out of memory" );
p_input->b_error = 1; p_input->b_error = 1;
......
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