Merritt implemented in the Mplayer/Mencoder project.
*/
- char *x264opts = strdup(job->x264opts);
- if( x264opts != NULL && *x264opts != '\0' )
+ if( job->x264opts != NULL && *job->x264opts != '\0' )
{
+ char *x264opts = strdup(job->x264opts);
while( *x264opts )
{
char *name = x264opts;
if( ret == X264_PARAM_BAD_VALUE )
hb_log( "x264 options: Bad argument %s=%s", name, value ? value : "(null)" );
}
+ free(x264opts);
}
- free(x264opts);
if( job->pixel_ratio )