Log in

View Full Version : x264 VfW Patch submission ?


Kyle_Katarn
25th October 2005, 11:19
Still on my way to solve the Vfw Crashed here comes a new patch :
In vfw/codec.c

/* */
LRESULT compress_end(CODEC * codec)
{
if( codec->h != NULL )
{
x264_encoder_close( codec->h );
codec->h = NULL;
}

free( codec->hCons );
codec->hCons = NULL;
return ICERR_OK;
}


replaced by

/* */
LRESULT compress_end(CODEC * codec)
{
if( codec->h != NULL )
{
x264_encoder_close( codec->h );
codec->h = NULL;
}

if( codec->hCons != NULL )
{
free( codec->hCons );
codec->hCons = NULL;
}
return ICERR_OK;
}

Sharktooth
25th October 2005, 18:40
the two "if"s are quite useless...

Kyle_Katarn
25th October 2005, 18:56
Why ? I'm still looking for the cause of the crash when calling compressEnd.

The fact is that this is not the key since the exception is "floating point error"....