fixes for DVD handling

This commit is contained in:
rocky
2004-07-27 18:57:04 +00:00
parent 0d82e6b92b
commit b2acdb3e8e
2 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
/* Common SCSI Multimedia Command (MMC) routines.
$Id: scsi_mmc.c,v 1.13 2004/07/27 02:45:16 rocky Exp $
$Id: scsi_mmc.c,v 1.14 2004/07/27 18:57:04 rocky Exp $
Copyright (C) 2004 Rocky Bernstein <rocky@panix.com>
@@ -333,7 +333,7 @@ scsi_mmc_get_dvd_struct_physical_private ( void *p_env, const
cdio_dvd_struct_t *s)
{
scsi_mmc_cdb_t cdb = {{0, }};
unsigned char buf[20], *base;
unsigned char buf[4 + 4 * 20], *base;
int i_status;
uint8_t layer_num = s->physical.layer_num;

View File

@@ -1,5 +1,5 @@
/*
$Id: util.c,v 1.3 2004/06/19 19:15:15 rocky Exp $
$Id: util.c,v 1.4 2004/07/27 18:57:04 rocky Exp $
Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
@@ -35,7 +35,7 @@
#include "cdio_assert.h"
#include <cdio/util.h>
static const char _rcsid[] = "$Id: util.c,v 1.3 2004/06/19 19:15:15 rocky Exp $";
static const char _rcsid[] = "$Id: util.c,v 1.4 2004/07/27 18:57:04 rocky Exp $";
size_t
_cdio_strlenv(char **str_array)
@@ -175,7 +175,7 @@ _cdio_strdup_upper (const char str[])
uint8_t
to_bcd8 (uint8_t n)
{
cdio_assert (n < 100);
/*cdio_assert (n < 100);*/
return ((n/10)<<4) | (n%10);
}