[FFmpeg-cvslog] r11573 - trunk/libavformat/mxf.c
Reimar Döffinger
Reimar.Doeffinger
Sat Jan 19 21:20:06 CET 2008
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
Greetings,
Reimar D?ffinger
More information about the ffmpeg-cvslog
mailing list