Mercurial > mplayer.hg
comparison libmpdvdkit2/nav_print.c @ 15874:483e955893b8
update libdvdread to v0.9.4
author | aurel |
---|---|
date | Thu, 30 Jun 2005 22:48:26 +0000 |
parents | 25df9508f9a8 |
children |
comparison
equal
deleted
inserted
replaced
15873:276da0bb6207 | 15874:483e955893b8 |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2000, 2001, 2002 Håkan Hjort <d95hjort@dtek.chalmers.se> | 2 * Copyright (C) 2000, 2001, 2002, 2003 Håkan Hjort <d95hjort@dtek.chalmers.se> |
3 * | |
4 * Modified for use with MPlayer, changes contained in libdvdread_changes.diff. | |
5 * detailed CVS changelog at http://www.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/ | |
6 * $Id$ | |
7 * | 3 * |
8 * Much of the contents in this file is based on VOBDUMP. | 4 * Much of the contents in this file is based on VOBDUMP. |
9 * | 5 * |
10 * VOBDUMP: a program for examining DVD .VOB filse | 6 * VOBDUMP: a program for examining DVD .VOB filse |
11 * | 7 * |
25 * You should have received a copy of the GNU General Public License | 21 * You should have received a copy of the GNU General Public License |
26 * along with this program; if not, write to the Free Software | 22 * along with this program; if not, write to the Free Software |
27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
28 */ | 24 */ |
29 | 25 |
26 #include "config.h" | |
27 | |
30 #include <stdio.h> | 28 #include <stdio.h> |
31 #include <inttypes.h> | 29 #include <inttypes.h> |
32 //#include <assert.h> | 30 |
33 | |
34 #include "config.h" // Needed for WORDS_BIGENDIAN | |
35 #include "nav_types.h" | 31 #include "nav_types.h" |
36 #include "nav_print.h" | 32 #include "nav_print.h" |
37 | 33 #include "dvdread_internal.h" |
38 | 34 |
39 static void print_time(dvd_time_t *dtime) { | 35 static void print_time(dvd_time_t *dtime) { |
40 const char *rate; | 36 const char *rate; |
41 assert((dtime->hour>>4) < 0xa && (dtime->hour&0xf) < 0xa); | 37 CHECK_VALUE((dtime->hour>>4) < 0xa && (dtime->hour&0xf) < 0xa); |
42 assert((dtime->minute>>4) < 0x7 && (dtime->minute&0xf) < 0xa); | 38 CHECK_VALUE((dtime->minute>>4) < 0x7 && (dtime->minute&0xf) < 0xa); |
43 assert((dtime->second>>4) < 0x7 && (dtime->second&0xf) < 0xa); | 39 CHECK_VALUE((dtime->second>>4) < 0x7 && (dtime->second&0xf) < 0xa); |
44 assert((dtime->frame_u&0xf) < 0xa); | 40 CHECK_VALUE((dtime->frame_u&0xf) < 0xa); |
45 | 41 |
46 printf("%02x:%02x:%02x.%02x", | 42 printf("%02x:%02x:%02x.%02x", |
47 dtime->hour, | 43 dtime->hour, |
48 dtime->minute, | 44 dtime->minute, |
49 dtime->second, | 45 dtime->second, |