Commit 41c3e425 authored by Evgeny Grin's avatar Evgeny Grin Committed by Jean-Baptiste Kempf

Fix partial read handling in DVDReadLBUDF()

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 72f87861
......@@ -53,7 +53,7 @@ static int DVDReadLBUDF( dvd_reader_t *device, uint32_t lb_number,
while(count > 0) {
int ret;
ret = InternalUDFReadBlocksRaw(device, lb_number, count, data, encrypted);
ret = InternalUDFReadBlocksRaw(device, lb_number, count, data + DVD_VIDEO_LB_LEN * (block_count - count), encrypted);
if(ret <= 0) {
/* One of the reads failed or nothing more to read, too bad.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment