avfilter/vf_signalstats: fix avframe leak on error