|
@@ -537,7 +537,8 @@ static int mov_read_dref(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
|
|
dref->dir = av_malloc(len+1); |
|
|
dref->dir = av_malloc(len+1); |
|
|
if (!dref->dir) |
|
|
if (!dref->dir) |
|
|
return AVERROR(ENOMEM); |
|
|
return AVERROR(ENOMEM); |
|
|
avio_read(pb, dref->dir, len); |
|
|
|
|
|
|
|
|
if (avio_read(pb, dref->dir, len) != len) |
|
|
|
|
|
return AVERROR_INVALIDDATA; |
|
|
dref->dir[len] = 0; |
|
|
dref->dir[len] = 0; |
|
|
for (j = 0; j < len; j++) |
|
|
for (j = 0; j < len; j++) |
|
|
if (dref->dir[j] == ':') |
|
|
if (dref->dir[j] == ':') |
|
|