Commit 40bec4d5 authored by hpi1's avatar hpi1

Allow reading the last byte of clip

parent 61348d3c
......@@ -125,7 +125,7 @@ int bd_read(BLURAY *bd, unsigned char *buf, int len)
if (bd->fp) {
DEBUG(DBG_BLURAY, "Reading unit [%d bytes] at %ld... (0x%08x)\n", len, bd->s_pos, bd);
if (len + bd->s_pos < bd->s_size) {
if (len + bd->s_pos <= bd->s_size) {
int read_len;
if ((read_len = file_read(bd->fp, buf, len))) {
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