From 5068a68001bf6072f79da073fb2d71551e7d7b7d Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 7 Nov 2020 01:38:54 +0000 Subject: [PATCH] When dumping DVD or Blu-ray, the last sector of all the tracks should be considered the last block, even if the drive tells us differently. Fixes #414 --- Aaru.Core/Devices/Dumping/Sbc/Dump.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Aaru.Core/Devices/Dumping/Sbc/Dump.cs b/Aaru.Core/Devices/Dumping/Sbc/Dump.cs index 132239cce..19a706792 100644 --- a/Aaru.Core/Devices/Dumping/Sbc/Dump.cs +++ b/Aaru.Core/Devices/Dumping/Sbc/Dump.cs @@ -460,6 +460,9 @@ namespace Aaru.Core.Devices.Dumping TrackSubchannelType = TrackSubchannelType.None }; + if(track.TrackEndSector >= blocks) + blocks = track.TrackEndSector + 1; + tracks.Add(track); }