# HG changeset patch # User reimar # Date 1155565457 0 # Node ID 969cc35900999a7707738853e837fdac83968a43 # Parent 01853e915882b7c5eb4995d723fc15dc6aa79c1e Do not call VFCTRL_FLUSH_FRAMES when the filter chain was never configured, since that will cause crashes (try with e.g. -ss 99999999999999). diff -r 01853e915882 -r 969cc3590099 mencoder.c --- a/mencoder.c Mon Aug 14 14:13:53 2006 +0000 +++ b/mencoder.c Mon Aug 14 14:24:17 2006 +0000 @@ -1543,6 +1543,9 @@ /* Emit the remaining frames in the video system */ /*TODO emit frmaes delayed by decoder lag*/ +if (!((vf_instance_t *)sh_video->vfilter)->fmt.have_configured) { + mp_msg(MSGT_MENCODER, MSGL_WARN, "\nFilters have not been configured! Empty file?\n"); +} else if(sh_video && sh_video->vfilter){ mp_msg(MSGT_MENCODER, MSGL_INFO, "\nFlushing video frames\n"); ((vf_instance_t *)sh_video->vfilter)->control(sh_video->vfilter,