--- xvid_encraw.c 2008/11/14 15:43:27 1.35 +++ xvid_encraw.c 2008/11/27 20:17:39 1.37 @@ -21,7 +21,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: xvid_encraw.c,v 1.35 2008/11/14 15:43:27 Isibaar Exp $ + * $Id: xvid_encraw.c,v 1.37 2008/11/27 20:17:39 Isibaar Exp $ * ****************************************************************************/ @@ -1919,7 +1919,9 @@ } if (ARG_SSIM>=0 || ARG_SSIM_PATH != NULL) { - plugins[xvid_enc_create.num_plugins].func = xvid_plugin_ssim; + memset(&ssim, 0, sizeof(xvid_plugin_ssim_t)); + + plugins[xvid_enc_create.num_plugins].func = xvid_plugin_ssim; if( ARG_SSIM >=0){ ssim.b_printstat = 1; @@ -1933,6 +1935,7 @@ ssim.stat_path = ARG_SSIM_PATH; } + ssim.cpu_flags = xvid_gbl_init.cpu_flags; ssim.b_visualize = 0; plugins[xvid_enc_create.num_plugins].param = &ssim; xvid_enc_create.num_plugins++;