OSDN Git Service

init uid to 0
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sat, 19 Jan 2008 20:00:09 +0000 (20:00 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sat, 19 Jan 2008 20:00:09 +0000 (20:00 +0000)
Originally committed as revision 11573 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mxf.c

index 553b1cf..a1906b9 100644 (file)
@@ -922,7 +922,7 @@ static int mxf_read_local_tags(MXFContext *mxf, KLVPacket *klv, int (*read_child
         int tag = get_be16(pb);
         int size = get_be16(pb); /* KLV specified by 0x53 */
         uint64_t next = url_ftell(pb) + size;
-        UID uid;
+        UID uid = {0};
 
         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);