changeset 1473:927cc72c6cac libavformat

report error when local tag has 0 size
author bcoudurier
date Fri, 10 Nov 2006 14:04:44 +0000
parents 49d5a5ca2987
children 70ed1bf0ae45
files mxf.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mxf.c	Thu Nov 09 11:37:30 2006 +0000
+++ b/mxf.c	Fri Nov 10 14:04:44 2006 +0000
@@ -371,8 +371,10 @@
 
         bytes_read += size + 4;
         dprintf("tag 0x%04X, size %d\n", tag, size);
-        if (!size) /* ignore empty tag, needed for some files with empty UMID tag */
+        if (!size) { /* ignore empty tag, needed for some files with empty UMID tag */
+            av_log(mxf->fc, AV_LOG_ERROR, "local tag 0x%04X with 0 size\n", tag);
             continue;
+        }
         switch (tag) {
         case 0x3C0A:
             get_buffer(pb, source_clip->uid, 16);