diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-11-10 14:04:44 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-11-10 14:04:44 +0000 |
commit | 5e8b05f8dfac7ab92d60bd61e2fe880a5a357fe2 (patch) | |
tree | 3defd3bf5a5f0e3f258860978ca9a8e9c19aee49 /libavformat/mxf.c | |
parent | f1a06ca80b8c55829d57adf3e4e4ec5469b924bc (diff) | |
download | ffmpeg-5e8b05f8dfac7ab92d60bd61e2fe880a5a357fe2.tar.gz |
report error when local tag has 0 size
Originally committed as revision 6962 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mxf.c')
-rw-r--r-- | libavformat/mxf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/mxf.c b/libavformat/mxf.c index efa95812e2..8591adb248 100644 --- a/libavformat/mxf.c +++ b/libavformat/mxf.c @@ -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); |