[libdvdnav-devel] Fix partial read handling in DVDReadLBUDF()
Evgeny Grin
git at videolan.org
Wed Dec 3 16:41:03 CET 2014
libdvdread | branch: master | Evgeny Grin <karlson2k at kodi.tv> | Tue Nov 25 18:46:33 2014 +0300| [41c3e42563ad2e3f29cdbc28529d515f2e71384d] | committer: Jean-Baptiste Kempf
Fix partial read handling in DVDReadLBUDF()
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/libdvdread.git/?a=commit;h=41c3e42563ad2e3f29cdbc28529d515f2e71384d
---
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.
More information about the libdvdnav-devel
mailing list