Commit feb1f7ab authored by Derek Buitenhuis's avatar Derek Buitenhuis

Merge commit 'd40cb726'

* commit 'd40cb726':
  mov: Trim dref absolute path
Merged-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parents e7ac968f d40cb726
......@@ -597,6 +597,13 @@ static int mov_read_dref(MOVContext *c, AVIOContext *pb, MOVAtom atom)
memmove(dref->path, dref->path+volume_len, len);
dref->path[len] = 0;
}
// trim string of any ending zeros
for (j = len - 1; j >= 0; j--) {
if (dref->path[j] == 0)
len--;
else
break;
}
for (j = 0; j < len; j++)
if (dref->path[j] == ':' || dref->path[j] == 0)
dref->path[j] = '/';
......
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