Commit 93028144 authored by bcoudurier's avatar bcoudurier

return error if malloc fails

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12262 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b2be39db
......@@ -255,6 +255,8 @@ static int mov_read_dref(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
len += 1;
if (type == 2) { // absolute path
dref->path = av_mallocz(len+1);
if (!dref->path)
return AVERROR(ENOMEM);
get_buffer(pb, dref->path, len);
if (len > volume_len && !strncmp(dref->path, volume, volume_len)) {
len -= volume_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