[FFmpeg-cvslog] r11573 - trunk/libavformat/mxf.c

Michael Niedermayer michaelni
Sat Jan 19 21:38:39 CET 2008


On Sat, Jan 19, 2008 at 09:20:06PM +0100, Reimar D?ffinger wrote:
> Hello,
> On Sat, Jan 19, 2008 at 09:00:09PM +0100, bcoudurier wrote:
> > Author: bcoudurier
> > Date: Sat Jan 19 21:00:09 2008
> > New Revision: 11573
> > 
> > Log:
> > init uid to 0
> > 
> > Modified:
> >    trunk/libavformat/mxf.c
> > 
> > Modified: trunk/libavformat/mxf.c
> > ==============================================================================
> > --- trunk/libavformat/mxf.c	(original)
> > +++ trunk/libavformat/mxf.c	Sat Jan 19 21:00:09 2008
> > @@ -922,7 +922,7 @@ static int mxf_read_local_tags(MXFContex
> >          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};
> 
> I'm quite sure it does not matter here, but note that even for arrays as
> small as 16 bytes memset is quite a bit faster than this kind of
> initialization, at least with gcc around 3.4

complain to the gcc devels not us :)

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20080119/4f0e0722/attachment.pgp>



More information about the ffmpeg-cvslog mailing list