rem: vd_inited = 0;
add: vd_inited = false;
context: VideoDecoder_Init (int flags, int depth, uint32 Rmask, uint32 Gmask,		uint32 Bmask, uint32 Amask){	TFB_RegVideoDecoder* info;	vd_inited = 0;	if (depth < 15 || depth > 32)	{		fprintf (stderr, "VideoDecoder_Init: "				"Unsupported video depth %d\n", depth);		return false;	}	if ((Rmask & Gmask) || (Rmask & Bmask) || (Rmask & Amask) ||			(Gmask & Bmask) || (Gmask & Amask) || (Bmask & Amask))	{		fprintf (stderr, "VideoDecoder_Init: Invalid channel masks\n");		return false;	}	// BEGIN: adapted from SDL	vd_vidfmt.BitsPerPixel = depth;	vd_vidfmt.BytesPerPixel = (depth + 7) / 8;	vd_vidfmt.Rmask = Rmask;	vd_vidfmt.Gmask = Gmask;	vd_vidfmt.Bmask = Bmask;	vd_vidfmt.Amask = Amask;	vd_computeMasks (Rmask, &vd_vidfmt.Rshift, &vd_vidfmt.Rloss);	vd_computeMasks (Gmask, &vd_vidfmt.Gshift, &vd_vidfmt.Gloss);	vd_computeMasks (Bmask, &vd_vidfmt.Bshift, &vd_vidfmt.Bloss);	vd_computeMasks (Amask, &vd_vidfmt.Ashift, &vd_vidfmt.Aloss);	// END: adapted from SDL		// init built-in decoders	for (info = vd_decoders; info->ext; info++)	{		if (!info->funcs->InitModule (flags))		{			fprintf (stderr, "VideoDecoder_Init(): "					"%s video decoder init failed\n",					info->funcs->GetName ());		}	}	vd_flags = flags;	vd_inited = 1;	return true;}