Mercurial > mplayer.hg
view libmpdvdkit2/config.h @ 17279:600d0b740940
"Currently mplayer looks for only one MP3 frame sync. The attached
patch makes it to look for two consecutive valid MP3 frame headers,
reducing the probability of false positives, which causes Bug 380.
Funny that the fix is so simple. Seems that someone has forgotten to
initialize MP3_resync correctly.
Also this is the recommended way to sync MP3 frames. See
http://www.dv.co.yu/mpgscript/mpeghdr.htm. "
Original thread:
Date: Dec 31, 2005 10:15 AM
Subject: [MPlayer-dev-eng] [PATCH] Try twice when searching for MP3 frame header, fixes Bug 380
author | gpoirier |
---|---|
date | Sat, 31 Dec 2005 18:56:35 +0000 |
parents | 483e955893b8 |
children | b3f6d34067c7 |
line wrap: on
line source
/* Version number of package */ #define VERSION "1.2.3" #define HAVE_UNISTD_H 1 /* Define if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX). */ #ifdef HAVE_MPLAYER #include "../config.h" #else #undef WORDS_BIGENDIAN /* Define if you have the <stddef.h> header file. */ #define HAVE_STDDEF_H 1 /* Define if <sys/dvdio.h> defines dvd_struct. */ #undef DVD_STRUCT_IN_SYS_DVDIO_H /* Define if <sys/cdio.h> defines dvd_struct. */ #undef DVD_STRUCT_IN_SYS_CDIO_H /* Define if <linux/cdrom.h> defines DVD_STRUCT. */ #define DVD_STRUCT_IN_LINUX_CDROM_H 1 /* Define if <dvd.h> defines DVD_STRUCT. */ #undef DVD_STRUCT_IN_DVD_H /* Define if <extras/BSDI_dvdioctl/dvd.h> defines DVD_STRUCT. */ #undef DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H /* HPUX SCSI headers. */ #undef HPUX_SCTL_IO /* Have userspace SCSI headers. */ #undef SOLARIS_USCSI /* Define if Linux-like dvd_struct is defined. */ #define HAVE_LINUX_DVD_STRUCT 1 /* Define if BSD-like dvd_struct is defined. */ #undef HAVE_BSD_DVD_STRUCT #endif /* assert support */ #undef HAVE_ASSERT_H #ifndef HAVE_ASSERT_H #define assert( ... ) do {} while(0) #endif