Also no longer flush frames when ctrl-Cing x264, so x264 will close faster.
x264_synch_frame_list_delete( &h->lookahead->next );
x264_synch_frame_list_delete( &h->lookahead->ofbuf );
if( h->lookahead->last_nonb )
- x264_frame_delete( h->lookahead->last_nonb );
+ x264_frame_push_unused( h, h->lookahead->last_nonb );
x264_free( h->lookahead );
}
}
}
/* Flush delayed frames */
- while( x264_encoder_delayed_frames( h ) )
+ while( !b_ctrl_c && x264_encoder_delayed_frames( h ) )
{
i_frame_size = Encode_frame( h, opt->hout, NULL );
if( i_frame_size < 0 )