check if read child returned error

Originally committed as revision 11570 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2008-01-19 19:51:55 +00:00
parent b8659d94b7
commit 6e3ea4461f

View File

@ -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);
}