Ticket #8036: MTD_Error_getting_volume_name.diff

File MTD_Error_getting_volume_name.diff, 578 bytes (added by jason.chambers@…, 10 years ago)

Patch for 0.22-fixes

  • mythtv/libs/libmythdvdnav/dvdread/dvd_udf.c

     
    928928  if(GetUDFCache(device, PVDCache, 0, pvd))
    929929    return 1;
    930930
    931   if(!UDFGetDescriptor( device, 1, pvd_buf, sizeof(pvd_buf)))
     931  if(!UDFGetDescriptor( device, 1, pvd_buf,
     932                    sizeof(pvd_buf_base) - (pvd_buf - pvd_buf_base)))
    932933    return 0;
    933934
    934935  memcpy(pvd->VolumeIdentifier, &pvd_buf[24], 32);