[libdvdnav-devel] [PATCH] Fix partial read handling in DVDReadLBUDF()
Evgeny Grin (Karlson2k)
karlson2k at kodi.tv
Tue Nov 25 16:46:33 CET 2014
From: Karlson2k <karlson2k at kodi.tv>
---
src/dvd_udf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/dvd_udf.c b/src/dvd_udf.c
index 58ad29e..3ff857b 100644
--- a/src/dvd_udf.c
+++ b/src/dvd_udf.c
@@ -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.
--
2.1.0.9738.g8768113
More information about the libdvdnav-devel
mailing list