Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
libdvdnav.patch
Package: vlc-1.0.5.zip [view]
Upload User: kjfoods
Upload Date: 2020-07-06
Package Size: 29949k
Code Size: 2k
Category:
midi program
Development Platform:
Unix_Linux
- Index: src/vm/vm.c
- ===================================================================
- --- src/vm/vm.c (revision 1136)
- +++ src/vm/vm.c (working copy)
- @@ -146,12 +146,11 @@
- fd = open(device, O_RDONLY);
- if (fd > 0) {
- off = lseek( fd, 32 * (off_t) DVD_VIDEO_LB_LEN, SEEK_SET );
- - if( off == ( 32 * (off_t) DVD_VIDEO_LB_LEN ) ) {
- + if (off == 16) {
- off = read( fd, data, DVD_VIDEO_LB_LEN );
- - close(fd);
- if (off == ( (off_t) DVD_VIDEO_LB_LEN )) {
- fprintf(MSG_OUT, "libdvdnav: DVD Title: ");
- - for(i=25; i < 73; i++ ) {
- + for(i=40; i < 73; i++ ) {
- if((data[i] == 0)) break;
- if((data[i] > 32) && (data[i] < 127)) {
- fprintf(MSG_OUT, "%c", data[i]);
- @@ -159,10 +158,12 @@
- fprintf(MSG_OUT, " ");
- }
- }
- - strncpy(name, (char*) &data[25], 48);
- - name[48] = 0;
- + strncpy(name, (char*) &data[40], 32);
- + i=31;
- + while( (i>=0) && (name[i] <= ' ')) --i;
- + name[i+1] = '';
- fprintf(MSG_OUT, "nlibdvdnav: DVD Serial Number: ");
- - for(i=73; i < 89; i++ ) {
- + for(i=813; i < 829; i++ ) {
- if((data[i] == 0)) break;
- if((data[i] > 32) && (data[i] < 127)) {
- fprintf(MSG_OUT, "%c", data[i]);
- Index: Makefile.am
- ===================================================================
- --- Makefile.am (revision 1136)
- +++ Makefile.am (working copy)
- @@ -1,7 +1,7 @@
- include $(top_srcdir)/misc/Makefile.common
- -SUBDIRS = src examples doc misc m4
- +SUBDIRS = src misc m4
- EXTRA_DIST = autogen.sh
- AUTHORS
- Index: src/dvdnav_internal.h
- ===================================================================
- --- src/dvdnav_internal.h (revision 1136)
- +++ src/dvdnav_internal.h working copy)
- @@ -37,7 +37,7 @@
- #define pthread_mutex_init(a, b) InitializeCriticalSection(a)
- #define pthread_mutex_lock(a) EnterCriticalSection(a)
- #define pthread_mutex_unlock(a) LeaveCriticalSection(a)
- -#define pthread_mutex_destroy(a)
- +#define pthread_mutex_destroy(a) DeleteCriticalSection(a)
- /* replacement gettimeofday implementation */
- #include <sys/timeb.h>