diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-01-19 19:51:55 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-01-19 19:51:55 +0000 |
commit | 6e3ea4461fa9a77964efd2fa7ed1250dd1c8d43d (patch) | |
tree | c1ea37154d01311bf97b9d665c5ea2437eeab416 /libavformat/mxf.c | |
parent | b8659d94b76c9b90c0aff3c5c01bfd2be6324e93 (diff) | |
download | ffmpeg-6e3ea4461fa9a77964efd2fa7ed1250dd1c8d43d.tar.gz |
check if read child returned error
Originally committed as revision 11570 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mxf.c')
-rw-r--r-- | libavformat/mxf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mxf.c b/libavformat/mxf.c index 42393ec768..39628d54e5 100644 --- a/libavformat/mxf.c +++ b/libavformat/mxf.c @@ -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); } |