changeset 2951:03fb674660c1 libavformat

check if read child returned error
author bcoudurier
date Sat, 19 Jan 2008 19:51:55 +0000
parents bbeec7ed375b
children e4ef7c3d3492
files mxf.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mxf.c	Sat Jan 19 17:28:49 2008 +0000
+++ b/mxf.c	Sat Jan 19 19:51:55 2008 +0000
@@ -939,8 +939,8 @@
         }
         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);
     }