diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/input/libdvdnav/vm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/libdvdnav/vm.c b/src/input/libdvdnav/vm.c index 1ab8c8e1d..7aee236b4 100644 --- a/src/input/libdvdnav/vm.c +++ b/src/input/libdvdnav/vm.c @@ -20,7 +20,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: vm.c,v 1.28 2004/04/05 18:01:09 hadess Exp $ + * $Id: vm.c,v 1.29 2004/06/13 13:29:57 mroi Exp $ * */ @@ -450,7 +450,7 @@ void vm_position_get(vm_t *vm, vm_position_t *position) { time += ((vm->state).pgc->cell_playback[(vm->state).cellN - 1].playback_time.minute & 0x0f) * 60; time += ((vm->state).pgc->cell_playback[(vm->state).cellN - 1].playback_time.second >> 4 ) * 10; time += ((vm->state).pgc->cell_playback[(vm->state).cellN - 1].playback_time.second & 0x0f) * 1; - if (size / time > 30) + if (!time || size / time > 30) /* datarate is too high, it might be a very short, but regular cell */ return; if (time > 0xff) time = 0xff; |