[libbluray-devel] Fix end-relative seeking
Petri Hintukainen
git at videolan.org
Sun Jun 26 11:30:58 CEST 2016
libudfread | branch: master | Petri Hintukainen <phintuka at gmail.com> | Sun Jun 26 12:30:11 2016 +0300| [193257565b6a1f24879e9d70f920e256ba3d8789] | committer: Petri Hintukainen
Fix end-relative seeking
> http://git.videolan.org/gitweb.cgi/libudfread.git/?a=commit;h=193257565b6a1f24879e9d70f920e256ba3d8789
---
src/udfread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/udfread.c b/src/udfread.c
index 8364dbe..b59f228 100644
--- a/src/udfread.c
+++ b/src/udfread.c
@@ -1548,7 +1548,7 @@ int64_t udfread_file_seek(UDFFILE *p, int64_t pos, int whence)
pos += p->pos;
break;
case UDF_SEEK_END:
- pos = udfread_file_size(p) - pos;
+ pos = udfread_file_size(p) + pos;
break;
case UDF_SEEK_SET:
default:
More information about the libbluray-devel
mailing list