mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-11 17:55:21 +00:00
Merge commit 'd40cb726d271b0284642a1ba159eb26a5c579f77'
* commit 'd40cb726d271b0284642a1ba159eb26a5c579f77': mov: Trim dref absolute path Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
commit
feb1f7abc5
@ -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] = '/';
|
||||
|
Loading…
Reference in New Issue
Block a user