[DVDnav-discuss] r1067 - trunk/libdvdread/src/dvd_reader.c

nicodvb subversion at mplayerhq.hu
Thu Jun 5 12:19:55 CEST 2008


Author: nicodvb
Date: Thu Jun  5 12:19:55 2008
New Revision: 1067

Log:
fixed incorrect type cast; patch by Erik Hovland org

Modified:
   trunk/libdvdread/src/dvd_reader.c

Modified: trunk/libdvdread/src/dvd_reader.c
==============================================================================
--- trunk/libdvdread/src/dvd_reader.c	(original)
+++ trunk/libdvdread/src/dvd_reader.c	Thu Jun  5 12:19:55 2008
@@ -1138,7 +1138,7 @@ int DVDDiscID( dvd_reader_t *dvd, unsign
 	    ssize_t bytes_read;
 	    size_t file_size = dvd_file->filesize * DVD_VIDEO_LB_LEN;
 	    char *buffer_base = malloc( file_size + 2048 );
-	    char *buffer = (unsigned char *)(((uintptr_t)buffer_base & ~((uintptr_t)2047)) + 2048);
+	    char *buffer = (char *)(((uintptr_t)buffer_base & ~((uintptr_t)2047)) + 2048);
 	    
 	    if( buffer_base == NULL ) {
 	        DVDCloseFile( dvd_file );



More information about the DVDnav-discuss mailing list