Mercurial > mplayer.hg
annotate libdvdcss/device.h @ 32605:7b4f8ecdc33b
Fix mp_check_mp3_header: it checked for a byte-swapped MP3-header
on little-endian, and on big-endian it would only accept a MP3-header
that would be valid when read in both directions.
The latter was the reason for bug 905, causing the PS demuxer to
claim files far too agressively (the MP3 check avoiding misdetection
as DV is not exactly a sane approach, but it mostly works).
author | reimar |
---|---|
date | Sat, 11 Dec 2010 21:11:33 +0000 |
parents | cda66f57f7a5 |
children | 691431d2289e |
rev | line source |
---|---|
20613 | 1 /***************************************************************************** |
2 * device.h: DVD device access | |
3 ***************************************************************************** | |
4 * Copyright (C) 1998-2002 VideoLAN | |
5 * $Id$ | |
6 * | |
27442 | 7 * Authors: Stéphane Borel <stef@via.ecp.fr> |
27462 | 8 * Sam Hocevar <sam@zoy.org> |
27442 | 9 * Håkan Hjort <d95hjort@dtek.chalmers.se> |
20613 | 10 * |
11 * This program is free software; you can redistribute it and/or modify | |
12 * it under the terms of the GNU General Public License as published by | |
13 * the Free Software Foundation; either version 2 of the License, or | |
14 * (at your option) any later version. | |
15 * | |
16 * This program is distributed in the hope that it will be useful, | |
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 * GNU General Public License for more details. | |
20 * | |
31098
9e9595c779cf
libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents:
27462
diff
changeset
|
21 * You should have received a copy of the GNU General Public License along |
9e9595c779cf
libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents:
27462
diff
changeset
|
22 * with libdvdcss; if not, write to the Free Software Foundation, Inc., |
9e9595c779cf
libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents:
27462
diff
changeset
|
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
20613 | 24 *****************************************************************************/ |
25 | |
32265
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31099
diff
changeset
|
26 #ifndef DVDCSS_DEVICE_H |
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31099
diff
changeset
|
27 #define DVDCSS_DEVICE_H |
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31099
diff
changeset
|
28 |
20613 | 29 /***************************************************************************** |
30 * iovec structure: vectored data entry | |
31 *****************************************************************************/ | |
32 #if defined( WIN32 ) && !defined( SYS_CYGWIN ) | |
33 # include <io.h> /* read() */ | |
34 #else | |
35 # include <sys/types.h> | |
36 # include <sys/uio.h> /* struct iovec */ | |
37 #endif | |
38 | |
32265
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31099
diff
changeset
|
39 #include "dvdcss/dvdcss.h" |
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31099
diff
changeset
|
40 |
20613 | 41 #if defined( WIN32 ) && !defined( SYS_CYGWIN ) |
42 struct iovec | |
43 { | |
44 void *iov_base; /* Pointer to data. */ | |
45 size_t iov_len; /* Length of data. */ | |
46 }; | |
47 #endif | |
48 | |
49 /***************************************************************************** | |
50 * Device reading prototypes | |
51 *****************************************************************************/ | |
52 int _dvdcss_use_ioctls ( dvdcss_t ); | |
53 void _dvdcss_check ( dvdcss_t ); | |
54 int _dvdcss_open ( dvdcss_t ); | |
55 int _dvdcss_close ( dvdcss_t ); | |
56 | |
57 /***************************************************************************** | |
58 * Device reading prototypes, raw-device specific | |
59 *****************************************************************************/ | |
31099
f43e87f69590
libdvdcss: OS/2 support; this merges upstream revisions 220 and 229.
diego
parents:
31098
diff
changeset
|
60 #if !defined(WIN32) && !defined(SYS_OS2) |
20613 | 61 int _dvdcss_raw_open ( dvdcss_t, char const * ); |
62 #endif | |
63 | |
32265
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31099
diff
changeset
|
64 #endif /* DVDCSS_DEVICE_H */ |