Browse Source

workaround for files, mainly d-cinema, with 0 sized tags especially UMID in source clip, 377M B.10,13 clearly mentions that this is non standard though

Originally committed as revision 6230 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Baptiste Coudurier 19 years ago
parent
commit
d70e3ff410
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavformat/mxf.c

+ 3
- 1
libavformat/mxf.c View File

@@ -319,7 +319,10 @@ static int mxf_read_metadata_source_clip(MXFContext *mxf, KLVPacket *klv)
int tag = get_be16(pb);
int size = get_be16(pb); /* SMPTE 336M Table 8 KLV specified length, 0x53 */

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 */
continue;
switch (tag) {
case 0x3C0A:
get_buffer(pb, source_clip->uid, 16);
@@ -341,7 +344,6 @@ static int mxf_read_metadata_source_clip(MXFContext *mxf, KLVPacket *klv)
default:
url_fskip(pb, size);
}
bytes_read += size + 4;
}
source_clip->type = SourceClip;
return mxf_add_metadata_set(mxf, source_clip);


Loading…
Cancel
Save