summaryrefslogtreecommitdiffstats
path: root/stream/vcd_read_darwin.h
diff options
context:
space:
mode:
Diffstat (limited to 'stream/vcd_read_darwin.h')
-rw-r--r--stream/vcd_read_darwin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/vcd_read_darwin.h b/stream/vcd_read_darwin.h
index 4a66b5d823..9eb3e9662a 100644
--- a/stream/vcd_read_darwin.h
+++ b/stream/vcd_read_darwin.h
@@ -81,7 +81,7 @@ int vcd_get_track_end(mp_vcd_priv_t* vcd, int track)
//read track info
memset( &vcd->entry, 0, sizeof(vcd->entry));
vcd->entry.addressType = kCDTrackInfoAddressTypeTrackNumber;
- vcd->entry.address = track<(hdr.lastTrackNumberInLastSessionLSB+1)?(track):CDROM_LEADOUT;
+ vcd->entry.address = track<hdr.lastTrackNumberInLastSessionLSB?track+1:CDROM_LEADOUT;
vcd->entry.bufferLength = sizeof(entry);
vcd->entry.buffer = &entry;