1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

report error when local tag has 0 size

Originally committed as revision 6962 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2006-11-10 14:04:44 +00:00
parent f1a06ca80b
commit 5e8b05f8df

View File

@ -371,8 +371,10 @@ static int mxf_read_metadata_source_clip(MXFContext *mxf, KLVPacket *klv)
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);