workaround for swscale bug (?) and fix crash if plugin doesn't start