Commit 6e3ea446 authored by Baptiste Coudurier's avatar Baptiste Coudurier

check if read child returned error

Originally committed as revision 11570 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b8659d94
......@@ -939,8 +939,8 @@ static int mxf_read_local_tags(MXFContext *mxf, KLVPacket *klv, int (*read_child
}
if (ctx_size && tag == 0x3C0A)
get_buffer(pb, ctx->uid, 16);
else
read_child(ctx, pb, tag, size, uid);
else if (read_child(ctx, pb, tag, size, uid) < 0)
return -1;
url_fseek(pb, next, SEEK_SET);
}
......
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