Mercurial > libdvdnav.hg
annotate vm/vmcmd.h @ 436:a566d307173d src
Avoid a crash when program number is zero.
This is a workaround for a crash at:
cellnr = pgc->program_map[ptt[i].pgn-1];
when playing "The Dictator".
Based on a patch by Ivan Kalvachev < ikalvachev AT gmail DOT com>.
author | rathann |
---|---|
date | Mon, 11 Nov 2013 23:49:17 +0000 |
parents | 0a5a6f03b029 |
children |
rev | line source |
---|---|
225 | 1 /* |
390 | 2 * Copyright (C) 2000, 2001 Martin Norbäck, Håkan Hjort |
388 | 3 * |
225 | 4 * This file is part of libdvdnav, a DVD navigation library. It is modified |
5 * from a file originally part of the Ogle DVD player. | |
388 | 6 * |
225 | 7 * libdvdnav is free software; you can redistribute it and/or modify |
8 * it under the terms of the GNU General Public License as published by | |
9 * the Free Software Foundation; either version 2 of the License, or | |
10 * (at your option) any later version. | |
388 | 11 * |
225 | 12 * libdvdnav is distributed in the hope that it will be useful, |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 * GNU General Public License for more details. | |
388 | 16 * |
389
d3c273ced49c
Use consistent license headers everywhere: Fix wrong FSF address.
diego
parents:
388
diff
changeset
|
17 * You should have received a copy of the GNU General Public License along |
d3c273ced49c
Use consistent license headers everywhere: Fix wrong FSF address.
diego
parents:
388
diff
changeset
|
18 * with libdvdnav; if not, write to the Free Software Foundation, Inc., |
d3c273ced49c
Use consistent license headers everywhere: Fix wrong FSF address.
diego
parents:
388
diff
changeset
|
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
225 | 20 */ |
21 | |
391 | 22 #ifndef LIBDVDNAV_VMCMD_H |
23 #define LIBDVDNAV_VMCMD_H | |
225 | 24 |
25 void vm_print_mnemonic(vm_cmd_t *command); | |
26 void vm_print_cmd(int row, vm_cmd_t *command); | |
27 | |
391 | 28 #endif /* LIBDVDNAV_VMCMD_H */ |